webpackJsonp([73],{

/***/ "+/+p":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return commonApi; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__("hRKE");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray__ = __webpack_require__("IHPB");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__("4YfN");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign__ = __webpack_require__("aA9S");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__("A9zj");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise__ = __webpack_require__("rVsN");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_mmbs__ = __webpack_require__("67dv");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_mmbs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_mmbs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__("2uFj");






/**
 * @module api
 */



var cacheCollection = {};
var configData = null;
var dictionary = {};
var dictionaryCollectionName = 'sys_dictionary';

var _dictionaryList_ = [];
var _dictionary_ = {
  loading: false,
  context: []
};
var findCode = function findCode(code) {
  return _dictionaryList_.filter(function (v) {
    return v.parentCode === code;
  });
};
var init = function init(code) {
  return new __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a(function (resolve, reject) {
    if (_dictionary_.loading) {
      _dictionary_.context.push({
        code: code,
        back: [resolve, reject]
      });
    } else {
      _dictionary_.loading = true;
      commonApi.search('sys_dictionary', { limit: 1000, ascending: 'order' }).then(function (res) {
        _dictionaryList_ = res;
        _dictionary_.context.forEach(function (item) {
          var results = findCode(item.code);
          item.back[0] && item.back[0](results);
        });
        resolve(findCode(code));
      }).catch(function (e) {
        _dictionary_.context.forEach(function (item) {
          item.back[1] && item.back[1](e);
        });
        reject(e);
      });
    }
  });
};

/**
 * 通用api操作方法集
 */
var commonApi = {
  /**
   * 新增数据
   * @function
   * @name save
   * @param {String} collectionName 集合名 {string} 集合名称
   * @param {object} obj 保存的对象
   * @param {object} acl acl访问控制选项
   * @return {Promise}
   */
  save: function save(collectionName, obj) {
    var acl = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
    var setAcl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;

    var instance = this.createInstance(collectionName, obj);
    !setAcl || instance.setACL(this.createACL(acl));
    return instance.save();
  },

  /**
   * 更新数据
   * @function
   * @name update
   * @param {String} collectionName 集合名 表名
   * @param {String} objectId 数据id
   * @param {Object} data 对象
   * @return {Promise}
   */
  update: function update(collectionName, objectId, data) {
    var instance = this.createInstance(collectionName, objectId);
    return instance.save(data);
  },

  /**
   * 删除数据
   * @function
   * @name delete
   * @param {String} collectionName 集合名 {String} - 表名
   * @param objectId {String} - 对象id
   * @return {Promise}
   */
  delete: function _delete(collectionName, objectId) {
    var instance = this.createInstance(collectionName, objectId);
    return instance.destroy();
  },

  /**
   * 根据ID获取数据
   * @function
   * @name findById
   * @param {String} collectionName 集合名 表名
   * @param objectId 数据id
   * @param include 指针列表
   * @return {PromiseLike<{id: *}> | Promise<{id: *}> | *}
   */
  findById: function findById(collectionName, objectId, include) {
    var query = this.createQuery(collectionName);
    query = this.extendQueryInclude(query, include);
    return query.get(objectId).then(function (v) {
      var _v$attributes = v.attributes,
          createdAt = _v$attributes.createdAt,
          updatedAt = _v$attributes.updatedAt,
          attributes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties___default()(_v$attributes, ['createdAt', 'updatedAt']);

      return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign___default()(v, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, attributes));
    });
  },

  /**
   * 查询，分页，条件
   * @function
   * @name query
   * @param {String} collectionName 集合名 {String} - 表名
   * @param {Object} options - 选项，示例：{page: 1, rows: 15, _order: '-createdAt', include: [], params: {}}
   * @param {Object} options.params - 参数，示例：{playerName: 'Stan', minClassObj: {value: 60, field: 'obj', type: 'greaterThan'}}
   * @return {Promise}
   */
  query: function query(collectionName) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var _options$page = options.page,
        page = _options$page === undefined ? 1 : _options$page,
        _options$rows = options.rows,
        rows = _options$rows === undefined ? __WEBPACK_IMPORTED_MODULE_7__config__["d" /* DefPageSize */] : _options$rows,
        _options$_order = options._order,
        _order = _options$_order === undefined ? '-createdAt' : _options$_order,
        _options$include = options.include,
        include = _options$include === undefined ? [] : _options$include,
        _options$params = options.params,
        params = _options$params === undefined ? {} : _options$params;

    var query = this.createQuery(collectionName);
    query = this.extendQueryOrder(query, _order);
    query = this.extendQueryInclude(query, include);
    query = this.extendQueryParams(query, params);
    return new __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a(function (resolve, reject) {
      __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a.all([query.count(), query.limit(rows).skip((page - 1) * rows).find()]).then(function (results) {
        var count = results[0];
        resolve({
          result: {
            total: count,
            rows: results[1].map(function (v) {
              var _v$attributes2 = v.attributes,
                  createdAt = _v$attributes2.createdAt,
                  updatedAt = _v$attributes2.updatedAt,
                  attributes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties___default()(_v$attributes2, ['createdAt', 'updatedAt']);

              return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign___default()(v, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, attributes));
            })
          }
        });
      }).catch(reject);
    });
  },

  /**
   * 查找列表所有记录
   * @function
   * @name find
   * @param {String} collectionName 集合名 {String} - 表名称
   * @param {Object} options - 查询选项：include，limit, _order, params
   * @return {Promise}
   */
  find: function find(collectionName) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var _options$limit = options.limit,
        limit = _options$limit === undefined ? 999 : _options$limit,
        _options$include2 = options.include,
        include = _options$include2 === undefined ? [] : _options$include2,
        _options$_order2 = options._order,
        _order = _options$_order2 === undefined ? '-createdAt' : _options$_order2,
        _options$params2 = options.params,
        params = _options$params2 === undefined ? {} : _options$params2;

    var query = this.createQuery(collectionName);
    query = this.extendQueryParams(query, params);
    query = this.extendQueryInclude(query, include);
    query = this.extendQueryOrder(query, _order);
    query.limit(limit);
    query.skip(0);
    return query.find().then(function (res) {
      return res.map(function (v) {
        var _v$attributes3 = v.attributes,
            createdAt = _v$attributes3.createdAt,
            updatedAt = _v$attributes3.updatedAt,
            attributes = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_objectWithoutProperties___default()(_v$attributes3, ['createdAt', 'updatedAt']);

        return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_assign___default()(v, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, attributes));
      });
    });
  },

  /**
   * 查询，分页，mmbs原生查询数据
   * @function
   * @name query
   * @param collectionName
   * @param options
   * @return {Promise}
   */
  search: function search(collectionName) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var findCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

    var query = this.createQuery(collectionName);
    query = this.extendQueryOptions(query, options);
    var fn = function fn(array) {
      return array.map(function (v) {
        return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({ id: v.id }, v.attributes);
      });
    };
    if (findCount) {
      return __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a.all([query.count(), query.find()]).then(function (res) {
        return {
          result: {
            total: res[0],
            rows: fn(res[1])
          }
        };
      });
    } else {
      return query.find().then(fn);
    }
  },

  /**
   * 查询，分页，mmbs原生查询数据查询第一条数据
   * @function
   * @name query
   * @param collectionName
   * @param options
   * @return {Promise}
   */
  searchFirst: function searchFirst(collectionName) {
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

    var query = this.createQuery(collectionName);
    query = this.extendQueryOptions(query, options);
    return query.first().then(function (v) {
      return v ? __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({ id: v.id }, v.attributes) : v;
    });
  },

  /**
   * 根据ID获取数据 打散数据
   * @function
   * @name findById
   * @param {String} collectionName 集合名 表名
   * @param objectId 数据id
   * @param include 指针列表
   * @return {PromiseLike<{id: *}> | Promise<{id: *}> | *}
   */
  searchById: function searchById(collectionName, objectId, options) {
    var query = this.createQuery(collectionName);
    query = this.extendQueryOptions(query, options);
    return query.get(objectId).then(function (v) {
      return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({ id: v.id }, v.attributes);
    });
  },

  /**
   * 根据查询条件获取满足条件的记录总数
   * @function
   * @name searchCount
   * @param {String} collectionName 集合名 表名
   * @param options 查询参数
   * @return {number}
   */
  searchCount: function searchCount(collectionName, options) {
    var query = this.createQueryIncludeOptions(collectionName, options);
    return query.count();
  },

  /**
   * 聚合查询-统计数据
   * @function
   * @name agg
   * @param {String} collectionName 集合名 {String} - 表名称
   * @param params 查询参数
   * @param pipeline
   * @return {Promise}
   */
  agg: function agg(collectionName, params, pipeline) {
    var query = this.createQuery(collectionName);
    query = this.extendQueryParams(query, params);
    return query.aggregate(pipeline);
  },

  /**
   * 数据订阅
   * @function
   * @name liveQuery
   * @param {String} collectionName 集合名称
   * @param {Object} params 参数
   * @return {Object} subscribe 监听对象
   */
  liveQuery: function liveQuery(collectionName, params) {
    var query = this.createQuery(collectionName);
    query = this.extendQueryParams(query, params);
    return query.subscribe();
  },

  /**
   * 数据订阅
   * @function
   * @name liveQueryIncludeOptions
   * @param {String} collectionName 集合名称
   * @param {Object} options 参数
   * @return {Object} subscribe 监听对象
   */
  liveQueryIncludeOptions: function liveQueryIncludeOptions(collectionName, options) {
    var query = this.createQuery(collectionName);
    query = this.extendQueryOptions(query, options);
    return query.subscribe();
  },

  /**
   * 获取字典数据
   * @function
   * @name dictionary
   * @param code {String} 唯一标识
   * @return {Promise<Array>}
   */
  dictionary: function dictionary(code) {
    return new __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a(function (resolve, reject) {
      var results = findCode(code);
      if (results.length === 0) {
        init(code).then(resolve, reject);
      } else {
        resolve(results);
      }
    });
  },

  /**
   * 获取多个字典数据
   * @function
   * @name dictionaries
   * @param codeList {Array} 唯一标识列表
   * @return {Promise<Array>}
   */
  dictionaries: function dictionaries(codeList) {
    var _this = this;

    return new __WEBPACK_IMPORTED_MODULE_5_babel_runtime_core_js_promise___default.a(function (resolve) {
      var obj = {};
      var options = {
        limit: 10000,
        _order: 'createdAt',
        params: { 'parentCode': { 'type': 'containedIn', 'value': codeList } }
      };
      _this.find(dictionaryCollectionName, options).then(function (results) {
        results.forEach(function (v) {
          if (!obj[v.parentCode]) {
            obj[v.parentCode] = [];
          }
          obj[v.parentCode].push(v);
        });
      }).catch(function (e) {
        return [];
      }).then(function () {
        resolve(codeList.map(function (v) {
          return obj[v] || [];
        }));
      });
    });
  },

  /**
   * 将include扩展到query对象上
   * @function
   * @name extendQueryInclude
   * @param {Object} query Mmbs.Query对象
   * @param {Array} include 指针类型属性名集合
   * @return {Object} Mmbs.Query
   */
  extendQueryInclude: function extendQueryInclude(query, include) {
    include = include || [];
    if (include && include.length) {
      include.forEach(function (field) {
        return query.include(field);
      });
    }
    return query;
  },

  /**
   * 将排序扩展到query对象上
   * @function
   * @name extendQueryOrder
   * @param query query对象
   * @param order 排序字段
   * @return {Object} Mmbs.Query
   */
  extendQueryOrder: function extendQueryOrder(query, order) {
    order = order || '-createdAt';
    if (order.indexOf('-') === 0) {
      query.descending(order.replace('-', ''));
    } else {
      query.ascending(order);
    }
    return query;
  },

  /**
   * 将查询扩展到query对象上
   * @function
   * @name extendQueryParams
   * @param {Object} query query对象
   * @param {Object} params 查询参数；
   参数示例；
   一般示例：{name: '关键字', sex: {type: 'equalTo', field: 'sex', value: '男'}, fuzzy: {type: 'crossField', field: ['compony', 'address', 'keywords'], value: '关键字'}}。
   “与”/“或”示例：{or: [{field: 'name', type: 'equalTo', value: 'keyWord'}, {field: 'compony', type: 'equalTo', value: 'keyWord'}]}。
   “与”/“或”示例2：{or: {'name': '模糊匹配', 'company': {type: 'equalTo', field: 'company', value: '公司名称'}}}。
   * @return {Object} Mmbs.Query
   */
  extendQueryParams: function extendQueryParams(query, params) {
    var _this2 = this;

    params = params || {};
    /**
     * 根据条件创建Query对象，用于 and 和 or
     * @param {String} className 类型名
     * @param {Object|Array} params 参数对象，数组或对象
     * @returns {Array} Mmbs.Query对象集合
     */
    var createQuerys = function createQuerys(className, params) {
      var querys = [];
      // 数组
      if (params instanceof Array) {
        for (var i = 0; i < params.length; i++) {
          var _params$i = params[i],
              type = _params$i.type,
              field = _params$i.field,
              value = _params$i.value;

          if (field) {
            var curQuery = _this2.createQuery(className);
            curQuery[type] && curQuery[type](field, value);
            querys.push(curQuery);
          }
        }
      } else if (params instanceof Object) {
        // 对象类型
        for (var key in params) {
          if (params.hasOwnProperty(key)) {
            var item = params[key];
            var _curQuery = _this2.createQuery(className);
            if (typeof item === 'string') {
              _curQuery.contains(key, item);
            } else {
              _curQuery = fn(_curQuery, item, key);
            }
            querys.push(_curQuery);
          }
        }
      }
      return querys;
    };
    // 扩展条件给query，并返回Mmbs.Query对象
    var fn = function fn(query, v, defaultField) {
      var type = v.type,
          field = v.field,
          value = v.value;
      // 集合名

      var className = query && query.className;
      if (type && query[type]) {
        query[type](field || defaultField, value);
      } else if (type === 'crossField' && value) {
        var _Mmbs$Query;

        if (typeof field === 'string') {
          field = field.split(',');
        }
        // 或查询/跨字段模糊匹配
        var querys = [];
        for (var i = 0; i < field.length; i++) {
          var curField = field[i];
          if (curField) {
            var curQuery = _this2.createQuery(className);
            curQuery.contains(curField, value);
            querys.push(curQuery);
          }
        }
        query = (_Mmbs$Query = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Query).or.apply(_Mmbs$Query, querys);
      } else if (['and', 'or'].indexOf(defaultField) >= 0) {
        var _Mmbs$Query2;

        // And 和 Or 查询；示例：{or: [{field: 'name', type: 'equalTo', value: 'keyWord'}, {field: 'compony', type: 'equalTo', value: 'keyWord'}]}
        query = (_Mmbs$Query2 = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Query)[defaultField].apply(_Mmbs$Query2, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray___default()(createQuerys(className, v)));
      }
      return query;
    };

    var _loop = function _loop(key) {
      var val = params[key];
      if (!val) return 'continue';
      if (typeof val === 'string') {
        query.contains(key, val);
      } else if (val instanceof Array) {
        if (['and', 'or'].indexOf(key) >= 0) {
          query = fn(query, val, key);
        } else {
          val.forEach(function (v) {
            query = fn(query, v, key);
          });
        }
      } else if ((typeof val === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(val)) === 'object') {
        query = fn(query, val, key);
      }
    };

    for (var key in params) {
      var _ret = _loop(key);

      if (_ret === 'continue') continue;
    }
    return query;
  },

  /**
   * 将查询扩展到query对象上
   * @function
   * @name extendQueryOptions
   * @param query query对象
   * @param options mmbs默认参数查询
   * @return {Object} Mmbs.Query
   */
  extendQueryOptions: function extendQueryOptions(query, options) {
    var _this3 = this;

    var extendQuery = function extendQuery(query, fn, val) {
      if (val instanceof Array) {
        val.forEach(function (v) {
          return query[fn](v);
        });
      } else if ((typeof val === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(val)) === 'object' && query[fn] && val) {
        for (var field in val) {
          query[fn](field, val[field]);
        }
      } else {
        query[fn](val);
      }
      return query;
    };
    var getQuery = function getQuery(query, options) {
      for (var _fn in options) {
        var obj = options[_fn];
        if (['and', 'or'].indexOf(_fn) > -1 && Array.isArray(obj)) {
          var _Mmbs$Query3;

          var results = obj.map(function (item) {
            return getQuery(_this3.createQuery(query.className), item);
          });
          query = (_Mmbs$Query3 = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Query)[_fn].apply(_Mmbs$Query3, __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_toConsumableArray___default()(results));
        } else {
          query = extendQuery(query, _fn, obj);
        }
      }
      return query;
    };
    return getQuery(query, options);
  },

  /**
   * 创建一个类
   * @function
   * @name createCollection
   * @param {String} collectionName 集合名
   * @return {Object} Mmbs.Object
   */
  createCollection: function createCollection(collectionName) {
    var Collection = cacheCollection[collectionName];
    if (!Collection) {
      Collection = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Object.extend(collectionName);
      cacheCollection[collectionName] = Collection;
    }
    return Collection;
  },

  /**
   * 创建类的query实例
   * @function
   * @name createQuery
   * @param {String} collectionName 集合名
   * @return {Object} Mmbs.Query
   */
  createQuery: function createQuery(collectionName) {
    var Collection = this.createCollection(collectionName);
    return new __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Query(Collection);
  },

  /**
   * 创建类的query实例 包含查询条件
   * @function
   * @name createQuery
   * @param {String} collectionName 集合名
   * @param {Object} options Mmbs的query选项
   * @return {Object} Mmbs.Query
   */
  createQueryIncludeOptions: function createQueryIncludeOptions(collectionName, options) {
    var query = this.createQuery(collectionName);
    return this.extendQueryOptions(query, options);
  },

  /**
   * 创建实体
   * @function
   * @name createInstance
   * @param {String} collectionName 集合名
   * @param {String|Object} obj 对象数据或者id
   * @return {Object} Mmbs.Object 数据实例
   */
  createInstance: function createInstance(collectionName, obj) {
    if (!obj) return null;
    var Collection = this.createCollection(collectionName);
    obj = typeof obj === 'string' ? { id: obj } : obj;
    return new Collection(obj);
  },

  /**
   * 添加acl权限
   * @function
   * @name createACL
   * @param {Object} acl acl选项，默认：{aclRead: "public", aclWrite: "public"}
   * 设置单用户: {aclRead: { users: "TJT8ENTgqg" }, aclWrite: { users: "TJT8ENTgqg" }}
   * 设置多用户 {aclRead: { users: ["TJT8ENTgqg", "G9jI7QOjmz"] }, aclWrite: { users: ["TJT8ENTgqg", "G9jI7QOjmz"] }}
   * 设置单角色: {aclRead: { roles: "administrator" }, aclWrite: { roles: "administrator" }}
   * 设置多角色 {aclRead: { roles: ["administrator", "passenger"] }, aclWrite: { roles: ["administrator", "passenger"] }}
   * @return {Object} Mmbs.ACL
   */
  createACL: function createACL(acl) {
    var aclObject = new __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.ACL();

    var _ref = acl || {},
        _ref$aclRead = _ref.aclRead,
        aclRead = _ref$aclRead === undefined ? "public" : _ref$aclRead,
        _ref$aclWrite = _ref.aclWrite,
        aclWrite = _ref$aclWrite === undefined ? "public" : _ref$aclWrite;

    if (aclRead && (typeof aclRead === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(aclRead)) === "object") {
      var users = aclRead.users,
          roles = aclRead.roles;

      if (typeof users === "string") {
        aclObject.setReadAccess(users, true);
      } else if (Array.isArray(users)) {
        users.forEach(function (v) {
          return aclObject.setReadAccess(v, true);
        });
      }
      if (typeof roles === "string") {
        aclObject.setReadAccess(roles, true);
      } else if (Array.isArray(roles)) {
        roles.forEach(function (v) {
          return aclObject.setRoleReadAccess(v, true);
        });
      }
    } else {
      aclObject.setPublicReadAccess(true);
    }
    if (aclWrite && (typeof aclWrite === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(aclWrite)) === "object") {
      var _users = aclWrite.users,
          _roles = aclWrite.roles;

      if (typeof _users === "string") {
        aclObject.setWriteAccess(_users, true);
      } else if (Array.isArray(_users)) {
        _users.forEach(function (v) {
          return aclObject.setWriteAccess(v, true);
        });
      }
      if (typeof _roles === "string") {
        aclObject.setRoleWriteAccess(_roles, true);
      } else if (Array.isArray(_roles)) {
        _roles.forEach(function (v) {
          return aclObject.setRoleWriteAccess(v, true);
        });
      }
    } else {
      aclObject.setPublicWriteAccess(true);
    }
    return aclObject;
  },

  /**
   * 用户登录
   * @function
   * @name login
   * @param {String} username 用户名
   * @param {String} password 密码
   * @return {Promise}
   */
  login: function login(_ref2) {
    var username = _ref2.username,
        password = _ref2.password;

    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.User.logIn(username, password);
  },

  /**
   * 登出
   * @function
   * @name logout
   * @return {Promise}
   */
  logout: function logout() {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.User.logOut();
  },

  /**
   * 运行云函数
   * @function
   * @name runCloud
   * @param funcName {String} - 函数名称
   * @param data {Object} - 函数参数
   * @return {Promise}
   */
  runCloud: function runCloud(funcName, data) {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Cloud.run(funcName, data);
  },

  /**
   * 上传文件
   * @function
   * @name uploadFile
   * @param {Object} file - 文件对象
   * @return {Promise}
   */
  uploadFile: function uploadFile(file) {
    var mFile = new __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.File(file.name, file);
    return mFile.save();
  },

  /**
   * graphql查询
   * @function
   * @name gql
   * @param {String} query 查询字符串
   * @param {Object} variables 参数
   * @param {String} operationName 查询操作名
   * @param {Object} options 选项
   * @return {Promise}
   */
  gql: function gql(query, variables, operationName, options) {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Cloud.gql(query, variables, operationName, options).then(function (res) {
      return res && res.data;
    });
  },

  /**
   * 获取Mmbs
   * @function
   * @name getMmbs
   * @return {Object} Mmbs
   */
  getMmbs: function getMmbs() {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a;
  },

  /**
   * 获取Mmbs全局配置
   * @function
   * @name getMmbsConfig
   * @param {String} name 配置名，若为空则返回当前所有配置
   */
  getMmbsConfig: function getMmbsConfig() {
    var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

    return name ? configData.get(name) : configData;
  },

  /**
   * 获取Mmbs全局配置
   * @function
   * @name initMmbsConfig
   * @return {Promise}
   */
  initMmbsConfig: function initMmbsConfig() {
    var replaceConfigHosts = function replaceConfigHosts(config) {
      var intranetConfig = config.get('intranet_hosts_config');
      if (!intranetConfig) {
        return config;
      }
      // 若输入地址是内网IP，按配置替换
      var intranetHosts = intranetConfig.intranetHosts;
      var replaceFlag = intranetHosts.indexOf(location.host) >= 0;
      var replaceHost = intranetConfig.replaceHost;
      // 要替的key列表
      var replaceKeys = intranetConfig.replaceKeys;
      if (replaceFlag && replaceKeys) {
        replaceKeys.forEach(function (keyStr, index) {
          var curitem = config.get(keyStr);
          // 替换key（原ip）为value（内网ip）
          replaceHost.forEach(function (item) {
            var key = item.key;
            var value = item.value;
            curitem = curitem.replace(key, value);
            // 替换mmbsURL
            if (index === 0) {
              __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.serverURL = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.serverURL.replace(key, value);
            }
          });
          config.attributes[keyStr] = curitem;
        });
      }
      return config;
    };
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Config.get().then(function (config) {
      configData = replaceConfigHosts(config);
      return config;
    });
  },

  /**
   * 批量保存
   * @function
   * @name saveAll
   * @param {Array} objects Mmbs对象集合
   * @return {Promise}
   */
  saveAll: function saveAll(objects) {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Object.saveAll(objects);
  },

  /**
   * 批量刪除
   * @function
   * @name destroyAll
   * @param {Array} objects Mmbs对象集合
   * @return {Promise}
   */
  destroyAll: function destroyAll(objects) {
    return __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Object.destroyAll(objects);
  },

  /**
   * 反响查询
   * @function
   * @name reverseQuery
   * @param {String} target 目标表
   * @param {String} field 目标字段
   * @param {Object} instance 目标实体
   * @return {Promise}
   */
  reverseQuery: function reverseQuery(target, field, instance) {
    var query = __WEBPACK_IMPORTED_MODULE_6_mmbs___default.a.Relation.reverseQuery(target, field, instance);
    var fn = function fn(array) {
      return array.map(function (v) {
        return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({ id: v.id }, v.attributes);
      });
    };
    return query.find().then(fn);
  },

  /**
   * 批量导入数据
   */
  batchImport: function batchImport(data) {
    var gql = '\n      mutation importData($data: JSON!) {\n        createObjects (\n          input: $data\n        )\n      }\n    ';
    return this.gql(gql, { data: data });
  },

  /**
   * 获取表中一列去重数据
   * @param {string} collectionName // 集合名
   * @param {string} fieldName // 字段名
   */
  distinct: function distinct(collectionName, fieldName) {
    var query = this.createQuery(collectionName);
    return query.distinct(fieldName);
  },

  /**
   * 根据用户id 获取该数据是否可以被写入
   * @param id 用户id或对象
   * @param obj 数据object
   * @param collectionName 数据表名
   * @returns {Boolean}
   */
  getWriteAccessById: function getWriteAccessById(user, obj, collectionName) {
    obj = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, obj);
    user = (typeof user === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(user)) === "object" ? user.id : user;
    var instance = this.createInstance(collectionName, obj);
    return instance.getACL().getWriteAccess(user);
  },

  /**
   * 根据用户角色, 获取该数据是否可以被写入
   * @param collectionName 数据表名
   * @param obj 数据object
   * @param roles 用户角色列表 {array}
   * @returns {Boolean}
   */
  getWriteAccessByRoles: function getWriteAccessByRoles(roles, obj, collectionName) {
    obj = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, obj);
    var instance = this.createInstance(collectionName, obj);
    var acl = instance.getACL();
    var write = roles.find(function (v) {
      return acl.getWriteAccess('role:' + v.name);
    });
    return !!write;
  },

  /**
   * 根据用户或者角色, 获取该数据是否可以被写入
   * @param user
   * @param roles
   * @param obj
   * @param collectionName
   * @returns {*}
   */
  getWriteAccess: function getWriteAccess(user, roles, obj, collectionName) {
    var instance = this.createInstance(collectionName, { id: obj.id });
    var acl = instance.getACL();
    user = (typeof user === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(user)) === "object" ? user.id : id;
    var userWirte = acl.getWriteAccess(user);
    var roleWrite = roles.find(function (v) {
      return acl.getWriteAccess('role:' + v.name);
    });
    return userWirte || roleWrite;
  }
};


/***/ }),

/***/ "2uFj":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppId; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return SystemName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return ServerName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return BASEINFO; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return IP; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return DefPageSize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return Version; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return BaseUrl; });
var AppId = 'xwajAppId';

var SystemName = '徐圩智慧安监';

var ServerName = 'xwaj';

var BASEINFO = '__BASEINFO__';

var IP = '__IP__';

var DefPageSize = 20;

var Version = '2.1.0';

var BaseUrl = {
  public: 'http://218.92.104.98:3080/xwaj', //  http://118.26.73.70:23360/xwaj http://218.92.104.98:3080/xwaj
  private: 'http://118.26.73.70:23360/xwaj',
  local: 'http://localhost:3360/xwaj'
};

/***/ }),

/***/ "4Bcj":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return bridge; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__index__ = __webpack_require__("5/dX");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__backStore_js__ = __webpack_require__("xblt");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_dsbridge__ = __webpack_require__("U94j");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_dsbridge___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_dsbridge__);




var bridge = {
  ScannerCode: function ScannerCode(callback) {
    var scanner = api.require("FNScanner");
    scanner.open({}, callback);
  },
  PreviewFile: function PreviewFile(options) {
    var superFile = api.require("superFile");
    api.download({
      url: options.url
    }, function (ret, err) {
      if (ret.state === 1) {
        superFile.open({
          path: ret.savePath
        });
      } else {
        alert('文件下载失败');
      }
    });
  },
  Play: function Play(url) {
    api.openVideo({
      url: url
    });
  },
  PreviewPdf: function PreviewPdf(options) {
    var pdfReader = api.require("pdfReader");
    pdfReader.open({
      path: options.url,
      hidden: {
        print: false,
        export: true,
        bookmark: true,
        email: true
      }
    });
  },

  /*
   * 绑定用户
   */
  pushBind: function pushBind(options) {
    var push = api.require('push');
    push.bind({
      userName: options.userName,
      userId: options.userId
    }, function (ret, err) {
      if (ret.status) {
        api.alert({
          msg: '绑定成功'
        });
      } else {
        api.alert({
          msg: err.msg
        });
      }
    });
  },

  /*
   * 解绑用户
   */
  pushUnBind: function pushUnBind(options) {
    var push = api.require('push');
    push.unbind({
      userName: options.userName,
      userId: options.userId
    }, function (ret, err) {
      if (ret.status) {
        api.alert({
          msg: '解除绑定成功'
        });
      } else {
        api.alert({
          msg: err.msg
        });
      }
    });
  },
  Live: function Live(url, callback) {
    __WEBPACK_IMPORTED_MODULE_2_dsbridge___default.a.call('live', {
      url: url
    }, callback);
  },
  PlayLive: function PlayLive(url) {
    __WEBPACK_IMPORTED_MODULE_2_dsbridge___default.a.call('playLive', {
      url: url
    });
  }
};

/***/ }),

/***/ "5/dX":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./src/common/plugin/utils/check.js
/**
 * Created by mas on 2018/3/17.
 */
function check(obj, msg) {
  for (var key in msg) {
    var li = key.split('.');
    if (li.length === 1) {
      var val = obj[key];
      if (!val) {
        return msg[key];
      } else {
        if (val instanceof Array && !val.length) {
          return msg[key];
        }
      }
    } else {
      var _val = obj;
      for (var i = 0; i < li.length; i++) {
        _val = _val[li[i]];
        if (!_val) {
          return msg[key];
        } else {
          if (_val instanceof Array && !_val.length) {
            return msg[key];
          }
        }
      }
    }
  }
  return null;
}
// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/promise.js
var promise = __webpack_require__("rVsN");
var promise_default = /*#__PURE__*/__webpack_require__.n(promise);

// CONCATENATED MODULE: ./src/common/plugin/utils/delayed.js

/**
 * Created by mas on 2018/3/17.
 */
function delayed(time) {
  return new promise_default.a(function (resolve) {
    setTimeout(function () {
      resolve();
    }, time);
  });
}
// CONCATENATED MODULE: ./src/common/plugin/utils/isImg.js
/**
 * Created by mas on 2018/3/17.
 */
function isImg(src) {
  var res = src.replace(/^.+\./, '').toLowerCase().match(/^(png|jpg|jpeg|gif)$/);
  if (!res) return false;
  return true;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/isVideo.js
/**
 * Created by mas on 2018/3/17.
 */

function isVideo(src) {
  var res = src.replace(/^.+\./, '').toLowerCase().match(/^(mp4|rmvb|mkv|webm|avi)$/);
  if (!res) return false;
  return true;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/throttle.js
/**
 * Created by mas on 2018/3/17.
 */
function throttle(fn, delay) {
  var mustRunDelay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

  var timer = null;
  var tStart = void 0;
  return function () {
    var context = this;
    var args = arguments;
    var tCurr = +new Date();
    clearTimeout(timer);
    if (!tStart) {
      tStart = tCurr;
    }
    if (mustRunDelay !== 0 && tCurr - tStart >= mustRunDelay) {
      fn.apply(context, args);
      tStart = tCurr;
    } else {
      timer = setTimeout(function () {
        fn.apply(context, args);
      }, delay);
    }
  };
}
// CONCATENATED MODULE: ./src/common/plugin/utils/inView.js
/**
 * Created by mas on 2018/3/27.
 */
function inView(el) {
  var preLoad = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;

  var rect = el.getBoundingClientRect();
  return rect.top < window.innerHeight * preLoad && rect.bottom > 0 && rect.left < window.innerWidth * preLoad && rect.right > 0;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/requestAnimationFrame.js
/**
 * Created by mas on 2018/3/28.
 */
var requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) {
  window.setTimeout(callback, 1000 / 60);
};
// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/object/assign.js
var object_assign = __webpack_require__("aA9S");
var assign_default = /*#__PURE__*/__webpack_require__.n(object_assign);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/typeof.js
var helpers_typeof = __webpack_require__("hRKE");
var typeof_default = /*#__PURE__*/__webpack_require__.n(helpers_typeof);

// CONCATENATED MODULE: ./src/common/plugin/utils/formatTime.js

/**
 * Created by mas on 2017/9/18.
 */
function formatTime(date) {
  var fmt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY-MM-DD HH:mm:ss';

  if (!date) return '';
  var type = typeof date === 'undefined' ? 'undefined' : typeof_default()(date);
  if (type === 'number') {
    date = new Date(date);
  } else if (type === 'string') {
    date = new Date(Date.parse(date));
  }
  var o = {
    'M+': date.getMonth() + 1,
    'D+': date.getDate(),
    'h+': date.getHours() % 12 === 0 ? 12 : date.getHours() % 12,
    'H+': date.getHours(),
    'm+': date.getMinutes(),
    's+': date.getSeconds(),
    'q+': Math.floor((date.getMonth() + 3) / 3),
    'S': date.getMilliseconds()
  };
  var week = {
    '0': '\u65E5',
    '1': '\u4E00',
    '2': '\u4E8C',
    '3': '\u4E09',
    '4': '\u56DB',
    '5': '\u4E94',
    '6': '\u516D'
  };
  if (/(Y+)/.test(fmt)) {
    fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
  }
  if (/(E+)/.test(fmt)) {
    fmt = fmt.replace(RegExp.$1, (RegExp.$1.length > 1 ? RegExp.$1.length > 2 ? '\u661F\u671F' : '\u5468' : '') + week[date.getDay() + '']);
  }
  for (var k in o) {
    if (new RegExp('(' + k + ')').test(fmt)) {
      fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length));
    }
  }
  return fmt;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/groupDataByTime.js

/**
 * Created by mas on 2018/3/29.
 */


function groupDataByTime(list, obj) {
  var field = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'createdAt';

  obj = assign_default()({}, obj);
  list.forEach(function (v) {
    var date = formatTime(v[field], 'YYYY-MM-DD');
    if (!obj[date]) {
      obj[date] = [];
    }
    obj[date].push(v);
  });
  return obj;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/clickoutside.js
/**
 * Created by mas on 2018/3/25.
 */
var clickoutsideContext = '@@clickoutsideContext';

var clickoutside = {
  bind: function bind(el, binding, vnode) {
    var documentHandler = function documentHandler(e) {
      if (vnode.context && !el.contains(e.target)) {
        vnode.context[el[clickoutsideContext].methodName]();
      }
    };
    el[clickoutsideContext] = {
      documentHandler: documentHandler,
      methodName: binding.expression,
      arg: binding.arg || 'click'
    };
    document.addEventListener(el[clickoutsideContext].arg, documentHandler);
  },
  update: function update(el, binding) {
    el[clickoutsideContext].methodName = binding.expression;
  },
  unbind: function unbind(el) {
    document.removeEventListener(el[clickoutsideContext].arg, el[clickoutsideContext].documentHandler);
  },
  install: function install(Vue) {
    Vue.directive('clickoutside', {
      bind: this.bind,
      unbind: this.unbind
    });
  }
};
// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/classCallCheck.js
var classCallCheck = __webpack_require__("AA3o");
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/createClass.js
var createClass = __webpack_require__("xSur");
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);

// CONCATENATED MODULE: ./src/common/plugin/utils/PackingEvent.js


/**
 * Created by mas on 2018/4/1.
 */
var PackingEvent_PackingEvent = function () {
  createClass_default()(PackingEvent, null, [{
    key: 'VERTICAL',
    value: function VERTICAL() {
      return 'vertical';
    }
  }, {
    key: 'HORIZONTAL',
    value: function HORIZONTAL() {
      return 'horizontal';
    }
  }, {
    key: 'RIGHT',
    value: function RIGHT() {
      return 'right';
    }
  }, {
    key: 'LEFT',
    value: function LEFT() {
      return 'left';
    }
  }, {
    key: 'TOP',
    value: function TOP() {
      return 'top';
    }
  }, {
    key: 'BOTTOM',
    value: function BOTTOM() {
      return 'bottom';
    }
  }]);

  function PackingEvent(_ref) {
    var el = _ref.el,
        _ref$direction = _ref.direction,
        direction = _ref$direction === undefined ? PackingEvent.VERTICAL() : _ref$direction,
        _ref$prevent = _ref.prevent,
        prevent = _ref$prevent === undefined ? true : _ref$prevent,
        _ref$stop = _ref.stop,
        stop = _ref$stop === undefined ? true : _ref$stop,
        _ref$disabled = _ref.disabled,
        disabled = _ref$disabled === undefined ? false : _ref$disabled,
        start = _ref.start,
        move = _ref.move,
        end = _ref.end;

    classCallCheck_default()(this, PackingEvent);

    this.el = el;
    this.direction = direction;
    this.start = start;
    this.move = move;
    this.end = end;
    this.prevent = prevent;
    this.stop = stop;
    this.disabled = disabled;
    this.bindEvent();
  }

  createClass_default()(PackingEvent, [{
    key: 'setDisabled',
    value: function setDisabled(disabled) {
      this.disabled = disabled;
    }
  }, {
    key: 'bindEvent',
    value: function bindEvent() {
      var _this = this;

      var fn = function fn(e, name) {
        if (_this.disabled) return;
        _this[name](e);
      };
      this.el.addEventListener('touchstart', function (e) {
        return fn(e, '_start');
      });
      this.el.addEventListener('touchmove', function (e) {
        return fn(e, '_move');
      });
      this.el.addEventListener('touchend', function (e) {
        return fn(e, '_end');
      });
      this.el.addEventListener('touchcancel', function (e) {
        return fn(e, '_end');
      });
    }
  }, {
    key: '_start',
    value: function _start(event) {
      this._Intent = true;
      this._judgeIntent = true;
      this.startX = this._moveX = event.touches[0].clientX;
      this.startY = this._moveY = event.touches[0].clientY;
      !this.start || this.start({ e: event, x: this.startX, y: this.startY });
    }
  }, {
    key: '_move',
    value: function _move(event) {
      if (!this._Intent) return;
      var moveX = event.touches[0].clientX;
      var moveY = event.touches[0].clientY;
      var deltaX = moveX - this.startX;
      var deltaY = moveY - this.startY;
      var deltaMoveX = moveX - this._moveX;
      var deltaMoveY = moveY - this._moveY;
      this._moveX = moveX;
      this._moveY = moveY;
      if (this._judgeIntent) {
        if (!this._judgeDirection(deltaX, deltaY)) {
          this._Intent = false;
          return;
        }
        this._judgeIntent = false;
      }
      !this.prevent || event.preventDefault();
      !this.stop || event.stopPropagation();
      !this.move || this.move({ e: event, x: moveX, y: moveY, deltaX: deltaX, deltaY: deltaY, deltaMoveX: deltaMoveX, deltaMoveY: deltaMoveY });
    }
  }, {
    key: '_end',
    value: function _end(event) {
      if (this._judgeIntent) return;
      this._Intent = true;
      this._judgeIntent = true;
      this.endX = event.changedTouches[0].clientX;
      this.endY = event.changedTouches[0].clientY;
      var direction = '';
      var moveX = this.endX - this.startX;
      var moveY = this.endY - this.startY;
      if (this.direction === PackingEvent.HORIZONTAL()) {
        direction = moveX > 0 ? PackingEvent.RIGHT() : PackingEvent.LEFT();
      } else {
        direction = moveY > 0 ? PackingEvent.TOP() : PackingEvent.BOTTOM();
      }
      !this.end || this.end({ e: event, x: this.endX, y: this.endY, moveX: moveX, moveY: moveY, direction: direction });
    }
  }, {
    key: '_judgeDirection',
    value: function _judgeDirection(deltaX, deltaY) {
      var res = Math.abs(deltaY) - Math.abs(deltaX);
      if (this.direction === PackingEvent.HORIZONTAL()) {
        return res < 0;
      } else if (this.direction === PackingEvent.VERTICAL()) {
        return res > 0;
      }
    }
  }]);

  return PackingEvent;
}();
// EXTERNAL MODULE: ./node_modules/_vue@2.6.6@vue/dist/vue.esm.js
var vue_esm = __webpack_require__("PVEY");

// CONCATENATED MODULE: ./src/common/plugin/utils/bus.js
/**
 * Created by mas on 2018/3/18.
 */

var bus = new vue_esm["a" /* default */]({});
// CONCATENATED MODULE: ./src/common/plugin/utils/merge.js
/**
 * Created by mas on 2018/3/17.
 */
function merge(target) {
  for (var i = 1, j = arguments.length; i < j; i++) {
    var source = arguments[i];
    for (var prop in source) {
      if (source.hasOwnProperty(prop)) {
        var value = source[prop];
        if (value !== undefined) {
          target[prop] = value;
        }
      }
    }
  }
  return target;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/findParentFromTree.js
/**
 * Created by mas on 2018/5/6.
 */
function findParentFromTree(tree, node) {
  var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
  var children = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'children';

  if (!tree || !tree.length || !node) return [];
  var fn = function fn(list, code) {
    var res = [];
    for (var i = 0; i < list.length; i++) {
      var item = list[i];
      if (item[id] === code) {
        res.push(item);
        break;
      } else if (item[children] && item[children].length) {
        var child = fn(item[children], code);
        if (child && child.length) {
          res = [item].concat(child);
          break;
        }
      }
    }
    return res;
  };
  return fn(tree, node);
}
// CONCATENATED MODULE: ./src/common/plugin/utils/findNodeFromTree.js
/**
 * Created by mas on 2018/5/6.
 */
function findNodeFromTree(tree, node) {
  var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
  var children = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'children';

  if (!node || !node.length || !tree || !tree.length) return [];
  var findItem = function findItem(item, list) {
    for (var i = 0; i < list.length; i++) {
      if (list[i][id] === item) {
        return list[i];
      } else if (list[i][children] && list[i][children].length) {
        var res = findItem(item, list[i][children]);
        if (res) {
          return res;
        }
      }
    }
    return null;
  };
  return node.map(function (item) {
    return findItem(item, tree);
  });
}
// CONCATENATED MODULE: ./src/common/plugin/utils/getOffset.js
/**
 * Created by mas on 2018/3/17.
 */
function getOffset(el) {
  var box = el.getBoundingClientRect();
  var body = document.body;
  var clientTop = el.clientTop || body.clientTop || 0;
  var clientLeft = el.clientLeft || body.clientLeft || 0;
  var scrollTop = window.pageYOffset || el.scrollTop;
  var scrollLeft = window.pageXOffset || el.scrollLeft;
  return {
    top: box.top + scrollTop - clientTop,
    left: box.left + scrollLeft - clientLeft
  };
}
// CONCATENATED MODULE: ./src/common/plugin/utils/hasClass.js
/**
 * Created by mas on 2018/4/2.
 */
/* istanbul ignore next */
function hasClass(el, cls) {
  if (!el || !cls) return false;
  if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
  if (el.classList) {
    return el.classList.contains(cls);
  } else {
    return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
  }
};
// CONCATENATED MODULE: ./src/common/plugin/utils/parseTimeToString.js
/**
 * Created by mas on 2017/10/31.
 */

function parseTimeToString(num) {
  if (isNaN(num)) {
    return '00:00';
  }
  return ('00' + Math.floor(num / 60)).substr((Math.floor(num / 60) + '').length) + ':' + ('00' + Math.floor(num % 60)).substr((Math.floor(num % 60) + '').length);
}
// CONCATENATED MODULE: ./src/common/plugin/utils/array2String.js
/**
 * Created by mas on 2017/9/18.
 */
function array2String(array, key) {
  if (!array) {
    return '';
  }
  if (key) {
    array = array.map(function (item) {
      return item[key] ? item[key] : item;
    });
  }
  return array.length === 1 ? array[0] : array.join(',');
}
// CONCATENATED MODULE: ./src/common/plugin/utils/friendlyFileSize.js
/**
 * Created by mas on 2017/9/18.
 */
function friendlyFileSize(bytes) {
  if (bytes === 0) return '0B';
  var k = 1024;
  var sizes = 'B|KB|MB|GB|TB|PB|EB|ZB|YB'.split('|');
  var i = Math.floor(Math.log(bytes) / Math.log(k));
  return (bytes / Math.pow(k, i)).toPrecision(3) + sizes[i];
}
// CONCATENATED MODULE: ./src/common/plugin/utils/friendlyTime.js
/**
 * Created by mas on 2017/9/18.
 */
function friendlyTime(time) {
  var date = typeof time === 'number' ? new Date(time) : typeof time === 'string' ? new Date(Date.parse(time)) : time;
  var diff = (new Date().getTime() - date.getTime()) / 1000;
  var dayDiff = Math.floor(diff / 86400);

  var isValidDate = Object.prototype.toString.call(date) === '[object Date]' && !isNaN(date.getTime());

  if (!isValidDate) {
    return;
  }
  var formatDate = function formatDate(date) {
    var today = new Date(date);
    var year = today.getFullYear();
    var month = ('0' + (today.getMonth() + 1)).slice(-2);
    var day = ('0' + today.getDate()).slice(-2);
    var hour = today.getHours();
    var minute = today.getMinutes();
    var second = today.getSeconds();
    return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second;
  };

  if (isNaN(dayDiff) || dayDiff < 0 || dayDiff >= 31) {
    return formatDate(date);
  }

  return dayDiff === 0 && (diff < 60 && '刚刚' || diff < 120 && '1分钟前' || diff < 3600 && Math.floor(diff / 60) + '分钟前' || diff < 7200 && '1小时前' || diff < 86400 && Math.floor(diff / 3600) + '小时前') || dayDiff === 1 && '昨天' || dayDiff < 7 && dayDiff + '天前' || dayDiff < 31 && Math.ceil(dayDiff / 7) + '周前';
}
// CONCATENATED MODULE: ./src/common/plugin/utils/securityGetVal.js
/**
 * Created by mas on 2018/3/6.
 */
function securityGetVal(obj, props) {
  if (!obj) return;

  if (typeof props === 'string') {
    props = props.split('.');
  }

  if (props.length === 0) {
    return obj;
  }

  var prop = props.shift();

  if (prop && obj[prop]) {
    return securityGetVal(obj[prop], props);
  }
  return undefined;
}
// CONCATENATED MODULE: ./src/common/plugin/utils/mergeArray.js

/**
 * Created by mas on 2018/3/17.
 */
function mergeArray(primaryList, referenceList, primaryKey, referenceKey, hook) {
  return primaryList.map(function (item) {
    var obj = referenceList.find(function (child) {
      return item[primaryKey] === child[referenceKey];
    }) || {};
    if (hook) {
      return hook(item, obj);
    } else {
      return assign_default()({}, item, obj);
    }
  });
}
// EXTERNAL MODULE: ./node_modules/_async-validator@1.10.1@async-validator/es/index.js + 24 modules
var es = __webpack_require__("/HYD");

// EXTERNAL MODULE: ./src/common/plugin/$toast/index.js + 3 modules
var $toast = __webpack_require__("kZcp");

// CONCATENATED MODULE: ./src/common/plugin/utils/validator.js




function validator_validator(model, rules) {
  var autoShowMessage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

  var validator = new es["a" /* default */](rules);
  return new promise_default.a(function (resolve, reject) {
    validator.validate(model, function (errors, fields) {
      if (errors && autoShowMessage) {
        var messages = errors.map(function (error) {
          return error.message;
        }) || [];
        var msg = messages.length > 0 ? messages[0] : '';
        Object($toast["a" /* Toast */])(msg, 'tool');
      }
      resolve({ success: !errors, result: errors });
    });
  });
}
// CONCATENATED MODULE: ./src/common/plugin/utils/getParentAndOffsetByNode.js
function getParentAndOffsetByNode(node) {
  var result = {
    offset: node.offsetTop,
    parent: null
  };
  var el = node.parentNode;
  while (el) {
    if (el.scrollHeight > el.clientHeight) {
      result.parent = el;
      break;
    } else {
      el = el.parentNode;
    }
  }
  return result;
}
// EXTERNAL MODULE: ./src/common/plugin/utils/moment.js
var moment = __webpack_require__("X+EP");

// CONCATENATED MODULE: ./src/common/plugin/utils/calendarTime.js
/**
 * Created by mas on 2017/9/18.
 */


function calendarTime(date) {
  var calendar = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

  if (!calendar) return date;
  return Object(moment["a" /* moment */])(date).calendar(null, {
    sameDay: '[今天]',
    nextDay: '[明天]',
    nextWeek: 'dddd',
    lastDay: '[昨天]',
    lastWeek: 'dddd',
    sameElse: 'LL'
  });
}
// EXTERNAL MODULE: ./src/common/plugin/utils/bridge.js
var bridge = __webpack_require__("4Bcj");

// CONCATENATED MODULE: ./src/common/plugin/utils/index.js
/* unused concated harmony import check */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return check; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "g", function() { return delayed; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "p", function() { return isImg; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "q", function() { return isVideo; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "v", function() { return throttle; });
/* unused concated harmony import inView */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return inView; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "t", function() { return requestAnimationFrame; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "n", function() { return groupDataByTime; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "f", function() { return clickoutside; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return PackingEvent_PackingEvent; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "d", function() { return bus; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "r", function() { return merge; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "i", function() { return findParentFromTree; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "h", function() { return findNodeFromTree; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "m", function() { return getOffset; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "o", function() { return hasClass; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "s", function() { return parseTimeToString; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return array2String; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "j", function() { return formatTime; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "k", function() { return friendlyFileSize; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "l", function() { return friendlyTime; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "u", function() { return securityGetVal; });
/* unused concated harmony import mergeArray */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return mergeArray; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "w", function() { return validator_validator; });
/* unused concated harmony import getParentAndOffsetByNode */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return getParentAndOffsetByNode; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return calendarTime; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return bridge["a" /* bridge */]; });
/* unused concated harmony import moment */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return moment["a" /* moment */]; });
/**
 * Created by mas on 2018/3/17.
 */





























/***/ }),

/***/ "67dv":
/***/ (function(module, exports, __webpack_require__) {

!function(e,t){if(true)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=26)}([function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=!0,i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._resolved=!1,this._rejected=!1,this._resolvedCallbacks=[],this._rejectedCallbacks=[],"function"==typeof e&&e(this.resolve.bind(this),this.reject.bind(this))}return r(t,[{key:"resolve",value:function(){if(this._resolved||this._rejected)throw new Error("A promise was resolved even though it had already been "+(this._resolved?"resolved":"rejected")+".");this._resolved=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this._result=t;for(var r=0;r<this._resolvedCallbacks.length;r++)this._resolvedCallbacks[r].apply(this,t);this._resolvedCallbacks=[],this._rejectedCallbacks=[]}},{key:"reject",value:function(e){if(this._resolved||this._rejected)throw new Error("A promise was rejected even though it had already been "+(this._resolved?"resolved":"rejected")+".");this._rejected=!0,this._error=e;for(var t=0;t<this._rejectedCallbacks.length;t++)this._rejectedCallbacks[t](e);this._resolvedCallbacks=[],this._rejectedCallbacks=[]}},{key:"then",value:function(n,r){var i=this,s=new t,a=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];if("function"==typeof n)if(o)try{r=[n.apply(this,r)]}catch(e){r=[t.error(e)]}else r=[n.apply(this,r)];1===r.length&&t.is(r[0])?r[0].then(function(){s.resolve.apply(s,arguments)},function(e){s.reject(e)}):s.resolve.apply(s,r)},u=function(e){var n=[];if("function"==typeof r){if(o)try{n=[r(e)]}catch(e){n=[t.error(e)]}else n=[r(e)];1===n.length&&t.is(n[0])?n[0].then(function(){s.resolve.apply(s,arguments)},function(e){s.reject(e)}):o?s.resolve.apply(s,n):s.reject(n[0])}else s.reject(e)},l=function(e){e.call()};return o&&(void 0!==e&&"function"==typeof e.nextTick?l=function(t){e.nextTick(t)}:"function"==typeof setTimeout&&(l=function(e){setTimeout(e,0)})),this._resolved?l(function(){a.apply(i,i._result)}):this._rejected?l(function(){u(i._error)}):(this._resolvedCallbacks.push(a),this._rejectedCallbacks.push(u)),s}},{key:"always",value:function(e){return this.then(e,e)}},{key:"done",value:function(e){return this.then(e)}},{key:"fail",value:function(e){return this.then(null,e)}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"_thenRunCallbacks",value:function(e,r){var o={};return"function"==typeof e?(o.success=function(t){e(t,null)},o.error=function(t){e(null,t)}):"object"===(void 0===e?"undefined":n(e))&&("function"==typeof e.success&&(o.success=e.success),"function"==typeof e.error&&(o.error=e.error)),this.then(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o.success&&o.success.apply(this,n),t.as.apply(t,arguments)},function(e){return o.error&&(void 0!==r?o.error(r,e):o.error(e)),t.error(e)})}},{key:"_continueWith",value:function(e){return this.then(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return e(n,null)},function(t){return e(null,t)})}}],[{key:"is",value:function(e){return null!=e&&"function"==typeof e.then}},{key:"as",value:function(){for(var e=new t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.resolve.apply(e,r),e}},{key:"resolve",value:function(e){return new t(function(n,r){t.is(e)?e.then(n,r):n(e)})}},{key:"error",value:function(){for(var e=new t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.reject.apply(e,r),e}},{key:"reject",value:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.error.apply(null,n)}},{key:"when",value:function(e){var n,r=Array.isArray(e),o=(n=r?e:arguments).length,i=!1,s=[],a=r?[s]:s,u=[];if(s.length=n.length,u.length=n.length,0===o)return t.as.apply(this,a);for(var l=new t,f=function(){--o<=0&&(i?l.reject(u):l.resolve.apply(l,a))},c=function(e,n){t.is(e)?e.then(function(e){s[n]=e,f()},function(e){u[n]=e,i=!0,f()}):(s[d]=e,f())},d=0;d<n.length;d++)c(n[d],d);return l}},{key:"all",value:function(e){var n=0,r=[],o=!0,i=!1,s=void 0;try{for(var a,u=e[Symbol.iterator]();!(o=(a=u.next()).done);o=!0){var l=a.value;r[n++]=l}}catch(e){i=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw s}}if(0===n)return t.as([]);var f=!1,c=new t,d=0,h=[];return r.forEach(function(e,r){t.is(e)?e.then(function(e){if(f)return!1;h[r]=e,++d>=n&&c.resolve(h)},function(e){c.reject(e),f=!0}):(h[r]=e,d++,!f&&d>=n&&c.resolve(h))}),c}},{key:"race",value:function(e){var n=!1,r=new t,o=!0,i=!1,s=void 0;try{for(var a,u=e[Symbol.iterator]();!(o=(a=u.next()).done);o=!0){var l=a.value;t.is(l)?l.then(function(e){n||(n=!0,r.resolve(e))},function(e){n||(n=!0,r.reject(e))}):n||(n=!0,r.resolve(l))}}catch(e){i=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw s}}return r}},{key:"_continueWhile",value:function(e,n){return e()?n().then(function(){return t._continueWhile(e,n)}):t.as()}},{key:"isPromisesAPlusCompliant",value:function(){return o}},{key:"enableAPlusCompliant",value:function(){o=!0}},{key:"disableAPlusCompliant",value:function(){o=!1}}]),t}();t.default=i}).call(t,n(14))},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){var e=u.default.get("SERVER_URL");"/"!==e[e.length-1]&&(e+="/");var t=e.replace(/https?:\/\//,"");return t.substr(t.indexOf("/"))}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=o(n(2)),l=o(n(29)),f=o(n(10)),c=o(n(6)),d=(o(n(30)),o(n(20))),h=o(n(7)),y=o(n(31)),p=o(n(3)),v=o(n(4)),_=n(8),m=o(n(0)),g=o(n(11)),b=o(n(5)),w=r(n(32)),O=o(n(19)),S=r(n(33)),k=o(n(34)),A={},C=0,E=0,T=!u.default.get("IS_NODE");T?u.default.setObjectStateController(w):u.default.setObjectStateController(S);var N=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"function"==typeof this.initialize&&this.initialize.apply(this,arguments);var o=null;if(this._objCount=E++,"string"==typeof t)this.className=t,n&&"object"===(void 0===n?"undefined":s(n))&&(o=n);else if(t&&"object"===(void 0===t?"undefined":s(t))){this.className=t.className,o={};for(var i in t)"className"!==i&&(o[i]=t[i]);n&&"object"===(void 0===n?"undefined":s(n))&&(r=n)}if(o&&!this.set(o,r))throw new Error("Can't create an invalid Mmbs Object")}return a(e,[{key:"_getId",value:function(){if("string"==typeof this.id)return this.id;if("string"==typeof this._localId)return this._localId;var e="local"+String(C++);return this._localId=e,e}},{key:"_getStateIdentifier",value:function(){if(T){var e=this.id;return e||(e=this._getId()),{id:e,className:this.className}}return this}},{key:"_getServerData",value:function(){return u.default.getObjectStateController().getServerData(this._getStateIdentifier())}},{key:"_clearServerData",value:function(){var e=this._getServerData(),t={};for(var n in e)t[n]=void 0;u.default.getObjectStateController().setServerData(this._getStateIdentifier(),t)}},{key:"_getPendingOps",value:function(){return u.default.getObjectStateController().getPendingOps(this._getStateIdentifier())}},{key:"_clearPendingOps",value:function(){var e=this._getPendingOps(),t=e[e.length-1];Object.keys(t).forEach(function(e){delete t[e]})}},{key:"_getDirtyObjectAttributes",value:function(){var t=this.attributes,n=u.default.getObjectStateController().getObjectCache(this._getStateIdentifier()),r={};for(var o in t){var i=t[o];if(i&&"object"===(void 0===i?"undefined":s(i))&&!(i instanceof e)&&!(i instanceof v.default)&&!(i instanceof b.default))try{var a=(0,c.default)(i,!1,!0),l=JSON.stringify(a);n[o]!==l&&(r[o]=i)}catch(e){r[o]=i}}return r}},{key:"_toFullJSON",value:function(e){var t=this.toJSON(e);return t.__type="Object",t.className=this.className,t}},{key:"_getSaveJSON",value:function(){var e,t=this._getPendingOps(),n=this._getDirtyObjectAttributes(),r={};for(e in n)r[e]=new _.SetOp(n[e]).toJSON();for(e in t[0])r[e]=t[0][e].toJSON();return r}},{key:"_getSaveParams",value:function(){var e=this.id?"PUT":"POST",t=this._getSaveJSON(),n="classes/"+this.className;return this.id?n+="/"+this.id:"_User"===this.className&&(n="users"),{method:e,body:t,path:n}}},{key:"_finishFetch",value:function(e){!this.id&&e.objectId&&(this.id=e.objectId);var t=u.default.getObjectStateController();t.initializeState(this._getStateIdentifier());var n={};for(var r in e)"ACL"===r?n[r]=new h.default(e[r]):"objectId"!==r&&(n[r]=(0,f.default)(e[r]),n[r]instanceof b.default&&n[r]._ensureParentAndKey(this,r));n.createdAt&&"string"==typeof n.createdAt&&(n.createdAt=(0,y.default)(n.createdAt)),n.updatedAt&&"string"==typeof n.updatedAt&&(n.updatedAt=(0,y.default)(n.updatedAt)),!n.updatedAt&&n.createdAt&&(n.updatedAt=n.createdAt),t.commitServerChanges(this._getStateIdentifier(),n)}},{key:"_setExisted",value:function(e){var t=u.default.getObjectStateController().getState(this._getStateIdentifier());t&&(t.existed=e)}},{key:"_migrateId",value:function(e){if(this._localId&&e)if(T){var t=u.default.getObjectStateController(),n=t.removeState(this._getStateIdentifier());this.id=e,delete this._localId,n&&t.initializeState(this._getStateIdentifier(),n)}else this.id=e,delete this._localId}},{key:"_handleSaveResponse",value:function(e,t){var n,r={},o=u.default.getObjectStateController(),i=o.popPendingState(this._getStateIdentifier());for(n in i)i[n]instanceof _.RelationOp?r[n]=i[n].applyTo(void 0,this,n):n in e||(r[n]=i[n].applyTo(void 0));for(n in e)"createdAt"!==n&&"updatedAt"!==n||"string"!=typeof e[n]?"ACL"===n?r[n]=new h.default(e[n]):"objectId"!==n&&(r[n]=(0,f.default)(e[n]),r[n]instanceof _.UnsetOp&&(r[n]=void 0)):r[n]=(0,y.default)(e[n]);r.createdAt&&!r.updatedAt&&(r.updatedAt=r.createdAt),this._migrateId(e.objectId),201!==t&&this._setExisted(!0),o.commitServerChanges(this._getStateIdentifier(),r)}},{key:"_handleSaveError",value:function(){this._getPendingOps();u.default.getObjectStateController().mergeFirstPendingState(this._getStateIdentifier())}},{key:"initialize",value:function(){}},{key:"toJSON",value:function(e){var t=this.id?this.className+":"+this.id:this,n=(e=e||[t],{}),r=this.attributes;for(var o in r)"createdAt"!==o&&"updatedAt"!==o||!r[o].toJSON?n[o]=(0,c.default)(r[o],!1,!1,e):n[o]=r[o].toJSON();var i=this._getPendingOps();for(var o in i[0])n[o]=i[0][o].toJSON();return this.id&&(n.objectId=this.id),n}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.className===t.className&&this.id===t.id&&void 0!==this.id}},{key:"dirty",value:function(e){if(!this.id)return!0;var t=this._getPendingOps(),n=this._getDirtyObjectAttributes();if(e){if(n.hasOwnProperty(e))return!0;for(var r=0;r<t.length;r++)if(t[r].hasOwnProperty(e))return!0;return!1}return 0!==Object.keys(t[0]).length||0!==Object.keys(n).length}},{key:"dirtyKeys",value:function(){for(var e=this._getPendingOps(),t={},n=0;n<e.length;n++)for(var r in e[n])t[r]=!0;var o=this._getDirtyObjectAttributes();for(var r in o)t[r]=!0;return Object.keys(t)}},{key:"toPointer",value:function(){if(!this.id)throw new Error("Cannot create a pointer to an unsaved MmbsObject");return{__type:"Pointer",className:this.className,objectId:this.id}}},{key:"get",value:function(e){return this.attributes[e]}},{key:"relation",value:function(e){var t=this.get(e);if(t){if(!(t instanceof b.default))throw new Error("Called relation() on non-relation field "+e);return t._ensureParentAndKey(this,e),t}return new b.default(this,e)}},{key:"escape",value:function(e){var t=this.attributes[e];if(null==t)return"";if("string"!=typeof t){if("function"!=typeof t.toString)return"";t=t.toString()}return(0,d.default)(t)}},{key:"has",value:function(e){var t=this.attributes;return!!t.hasOwnProperty(e)&&null!=t[e]}},{key:"set",value:function(e,t,n){var r={},o={};if(e&&"object"===(void 0===e?"undefined":s(e)))r=e,n=t;else{if("string"!=typeof e)return this;r[e]=t}n=n||{};var i=[];"function"==typeof this.constructor.readOnlyAttributes&&(i=i.concat(this.constructor.readOnlyAttributes()));for(var a in r)if("createdAt"!==a&&"updatedAt"!==a){if(i.indexOf(a)>-1)throw new Error("Cannot modify readonly attribute: "+a);n.unset?o[a]=new _.UnsetOp:r[a]instanceof _.Op?o[a]=r[a]:r[a]&&"object"===s(r[a])&&"string"==typeof r[a].__op?o[a]=(0,_.opFromJSON)(r[a]):"objectId"===a||"id"===a?"string"==typeof r[a]&&(this.id=r[a]):"ACL"!==a||"object"!==s(r[a])||r[a]instanceof h.default?o[a]=new _.SetOp(r[a]):o[a]=new _.SetOp(new h.default(r[a]))}var l=this.attributes,f={};for(var c in o)o[c]instanceof _.RelationOp?f[c]=o[c].applyTo(l[c],this,c):o[c]instanceof _.UnsetOp||(f[c]=o[c].applyTo(l[c]));if(!n.ignoreValidation){var d=this.validate(f);if(d)return"function"==typeof n.error&&n.error(this,d),!1}var y=this._getPendingOps(),p=y.length-1,v=u.default.getObjectStateController();for(var c in o){var m=o[c].mergeWith(y[p][c]);v.setPendingOp(this._getStateIdentifier(),c,m)}return this}},{key:"unset",value:function(e,t){return t=t||{},t.unset=!0,this.set(e,null,t)}},{key:"increment",value:function(e,t){if(void 0===t&&(t=1),"number"!=typeof t)throw new Error("Cannot increment by a non-numeric amount.");return this.set(e,new _.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new _.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new _.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new _.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new _.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new _.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new _.RemoveOp(t))}},{key:"op",value:function(e){for(var t=this._getPendingOps(),n=t.length;n--;)if(t[n][e])return t[n][e]}},{key:"clone",value:function(){var e=new this.constructor;e.className||(e.className=this.className);var t=this.attributes;if("function"==typeof this.constructor.readOnlyAttributes){var n=this.constructor.readOnlyAttributes()||[],r={};for(var o in t)n.indexOf(o)<0&&(r[o]=t[o]);t=r}return e.set&&e.set(t),e}},{key:"newInstance",value:function(){var e=new this.constructor;if(e.className||(e.className=this.className),e.id=this.id,T)return e;var t=u.default.getObjectStateController();return t&&t.duplicateState(this._getStateIdentifier(),e._getStateIdentifier()),e}},{key:"isNew",value:function(){return!this.id}},{key:"existed",value:function(){if(!this.id)return!1;var e=u.default.getObjectStateController().getState(this._getStateIdentifier());return!!e&&e.existed}},{key:"isValid",value:function(){return!this.validate(this.attributes)}},{key:"validate",value:function(e){if(e.hasOwnProperty("ACL")&&!(e.ACL instanceof h.default))return new p.default(p.default.OTHER_CAUSE,"ACL must be a Mmbs ACL.");for(var t in e)if(!/^[A-Za-z][0-9A-Za-z_]*$/.test(t))return new p.default(p.default.INVALID_KEY_NAME);return!1}},{key:"getACL",value:function(){var e=this.get("ACL");return e instanceof h.default?e:null}},{key:"setACL",value:function(e,t){return this.set("ACL",e,t)}},{key:"revert",value:function(){this._clearPendingOps()}},{key:"clear",value:function(){var e=this.attributes,t={},n=["createdAt","updatedAt"];"function"==typeof this.constructor.readOnlyAttributes&&(n=n.concat(this.constructor.readOnlyAttributes()));for(var r in e)n.indexOf(r)<0&&(t[r]=!0);return this.set(t,{unset:!0})}},{key:"fetch",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("useAllowAnonymousKey")&&(t.useAllowAnonymousKey=e.useAllowAnonymousKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);return u.default.getObjectController().fetch(this,!0,t)._thenRunCallbacks(e)}},{key:"save",value:function(e,t,n){var r,o,i=this;if("object"===(void 0===e?"undefined":s(e))||void 0===e?(r=e,"object"===(void 0===t?"undefined":s(t))&&(o=t)):((r={})[e]=t,o=n),!o&&r&&(o={},"function"==typeof r.success&&(o.success=r.success,delete r.success),"function"==typeof r.error&&(o.error=r.error,delete r.error)),r){var a=this.validate(r);if(a)return o&&"function"==typeof o.error&&o.error(this,a),m.default.error(a);this.set(r,o)}var l={};(o=o||{}).hasOwnProperty("useMasterKey")&&(l.useMasterKey=!!o.useMasterKey),o.hasOwnProperty("useAllowAnonymousKey")&&(l.useAllowAnonymousKey=o.useAllowAnonymousKey),o.hasOwnProperty("sessionToken")&&"string"==typeof o.sessionToken&&(l.sessionToken=o.sessionToken);var f=u.default.getObjectController(),c=(0,k.default)(this);return f.save(c,l).then(function(){return f.save(i,l)})._thenRunCallbacks(o,this)}},{key:"destroy",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("useAllowAnonymousKey")&&(t.useAllowAnonymousKey=e.useAllowAnonymousKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),this.id?u.default.getObjectController().destroy(this,t)._thenRunCallbacks(e):m.default.as()._thenRunCallbacks(e)}},{key:"attributes",get:function(){var e=u.default.getObjectStateController();return Object.freeze(e.estimateAttributes(this._getStateIdentifier()))}},{key:"createdAt",get:function(){return this._getServerData().createdAt}},{key:"updatedAt",get:function(){return this._getServerData().updatedAt}}],[{key:"_clearAllState",value:function(){u.default.getObjectStateController().clearAllState()}},{key:"fetchAll",value:function(e,t){var n={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=t.useAllowAnonymousKey),t.hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken),u.default.getObjectController().fetch(e,!0,n)._thenRunCallbacks(t)}},{key:"fetchAllIfNeeded",value:function(e,t){var n={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=t.useAllowAnonymousKey),t.hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken),u.default.getObjectController().fetch(e,!1,n)._thenRunCallbacks(t)}},{key:"destroyAll",value:function(e,t){var n={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=t.useAllowAnonymousKey),t.hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken),u.default.getObjectController().destroy(e,n)._thenRunCallbacks(t)}},{key:"saveAll",value:function(e,t){var n={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=t.useAllowAnonymousKey),t.hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken),u.default.getObjectController().save(e,n)._thenRunCallbacks(t)}},{key:"createWithoutData",value:function(t){var n=null;if(2==arguments.length){return n=new(e.extend(arguments[0])),n.id=arguments[1],n}return n=new this,n.id=t,n}},{key:"createPointerData",value:function(t){if(!t)return null;if(!t.split)return null;var n=t.split("$");if(2!=n.length)return null;return e.extend(n[0]).createWithoutData(n[1])}},{key:"fromJSON",value:function(t,n){if(!t.className)throw new Error("Cannot create an object without a className");var r=A[t.className],o=r?new r:new e(t.className),i={};for(var s in t)"className"!==s&&"__type"!==s&&(i[s]=t[s]);if(n){i.objectId&&(o.id=i.objectId);var a=null;"function"==typeof o._preserveFieldsOnFetch&&(a=o._preserveFieldsOnFetch()),o._clearServerData(),a&&o._finishFetch(a)}return o._finishFetch(i),t.objectId&&o._setExisted(!0),o}},{key:"registerSubclass",value:function(e,t){if("string"!=typeof e)throw new TypeError("The first argument must be a valid class name.");if(void 0===t)throw new TypeError("You must supply a subclass constructor.");if("function"!=typeof t)throw new TypeError("You must register the subclass constructor. Did you attempt to register an instance of the subclass?");A[e]=t,t.className||(t.className=e)}},{key:"extend",value:function(t,n,r){if("string"!=typeof t){if(t&&"string"==typeof t.className)return e.extend(t.className,t,n);throw new Error("Mmbs.Object.extend's first argument should be the className.")}var o=t;"User"===o&&u.default.get("PERFORM_USER_REWRITE")&&(o="_User");var i=e.prototype;this.hasOwnProperty("__super__")&&this.__super__?i=this.prototype:A[o]&&(i=A[o].prototype);var a=function(e,t){if(this.className=o,this._objCount=E++,"function"==typeof this.initialize&&this.initialize.apply(this,arguments),e&&"object"===(void 0===e?"undefined":s(e))&&!this.set(e||{},t))throw new Error("Can't create an invalid Mmbs Object")};if(a.className=o,a.__super__=i,a.prototype=Object.create(i,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n)for(var l in n)"className"!==l&&Object.defineProperty(a.prototype,l,{value:n[l],enumerable:!1,writable:!0,configurable:!0});if(r)for(var l in r)"className"!==l&&Object.defineProperty(a,l,{value:r[l],enumerable:!1,writable:!0,configurable:!0});return a.extend=function(t,n,r){return"string"==typeof t?e.extend.call(a,t,n,r):e.extend.call(a,o,t,n)},a.createWithoutData=e.createWithoutData,A[o]=a,a}},{key:"enableSingleInstance",value:function(){T=!0,u.default.setObjectStateController(w)}},{key:"disableSingleInstance",value:function(){T=!1,u.default.setObjectStateController(S)}}]),e}(),I={fetch:function(e,t,n){if(Array.isArray(e)){if(e.length<1)return m.default.as([]);var r=[],o=[],i=null,s=[],a=null;if(e.forEach(function(e,n){a||(i||(i=e.className),i!==e.className&&(a=new p.default(p.default.INVALID_CLASS_NAME,"All objects should be of the same class")),e.id||(a=new p.default(p.default.MISSING_OBJECT_ID,"All objects must have an ID")),(t||0===Object.keys(e._getServerData()).length)&&(o.push(e.id),r.push(e)),s.push(e))}),a)return m.default.error(a);var l=new g.default(i);return l.containedIn("objectId",o),l._limit=o.length,l.find(n).then(function(e){var n={};e.forEach(function(e){n[e.id]=e});for(var o=0;o<r.length;o++){if((!(i=r[o])||!i.id||!n[i.id])&&t)return m.default.error(new p.default(p.default.OBJECT_NOT_FOUND,"All objects must exist on the server."))}if(!T)for(o=0;o<s.length;o++){var i;if((i=s[o])&&i.id&&n[i.id]){var a=i.id;i._finishFetch(n[a].toJSON()),s[o]=n[a]}}return m.default.as(s)})}return u.default.getRESTController().request("GET","classes/"+e.className+"/"+e._getId(),{},n).then(function(t,n,r){return e instanceof N&&(e._clearPendingOps(),e._clearServerData(),e._finishFetch(t)),e})},destroy:function(e,t){var n=u.default.getRESTController();if(Array.isArray(e)){if(e.length<1)return m.default.as([]);var r=[[]];e.forEach(function(e){e.id&&(r[r.length-1].push(e),r[r.length-1].length>=20&&r.push([]))}),0===r[r.length-1].length&&r.pop();var o=m.default.as(),s=[];return r.forEach(function(e){o=o.then(function(){return n.request("POST","batch",{requests:e.map(function(e){return{method:"DELETE",path:i()+"classes/"+e.className+"/"+e._getId(),body:{}}})},t).then(function(t){for(var n=0;n<t.length;n++)if(t[n]&&t[n].hasOwnProperty("error")){var r=new p.default(t[n].error.code,t[n].error.error);r.object=e[n],s.push(r)}})})}),o.then(function(){if(s.length){var t=new p.default(p.default.AGGREGATE_ERROR);return t.errors=s,m.default.error(t)}return m.default.as(e)})}return e instanceof N?n.request("DELETE","classes/"+e.className+"/"+e._getId(),{},t).then(function(){return m.default.as(e)}):m.default.as(e)},save:function(e,t){var n=u.default.getRESTController(),r=u.default.getObjectStateController();if(Array.isArray(e)){if(e.length<1)return m.default.as([]);for(var o=e.concat(),s=0;s<e.length;s++)e[s]instanceof N&&(o=o.concat((0,k.default)(e[s],!0)));o=(0,O.default)(o);var a=m.default.as(),f=[];return o.forEach(function(e){e instanceof v.default?a=a.then(function(){return e.save()}):e instanceof N&&f.push(e)}),a.then(function(){var o=null;return m.default._continueWhile(function(){return f.length>0},function(){var e=[],s=[];if(f.forEach(function(t){e.length<20&&(0,l.default)(t)?e.push(t):s.push(t)}),f=s,e.length<1)return m.default.error(new p.default(p.default.OTHER_CAUSE,"Tried to save a batch with a cycle."));var a=new m.default,u=[],c=[];return e.forEach(function(e,t){var n=new m.default;u.push(n);r.pushPendingState(e._getStateIdentifier()),c.push(r.enqueueTask(e._getStateIdentifier(),function(){return n.resolve(),a.then(function(n,r){if(n[t].hasOwnProperty("success"))e._handleSaveResponse(n[t].success,r);else{if(!o&&n[t].hasOwnProperty("error")){var i=n[t].error;o=new p.default(i.code,i.error),f=[]}e._handleSaveError()}})}))}),m.default.when(u).then(function(){return n.request("POST","batch",{requests:e.map(function(e){var t=e._getSaveParams();return t.path=i()+t.path,t})},t)}).then(function(e,t,n){a.resolve(e,t)},function(e){a.reject(e)}),m.default.when(c)}).then(function(){return o?m.default.error(o):m.default.as(e)})})}if(e instanceof N){var c=e,d=function(){var e=c._getSaveParams();return n.request(e.method,e.path,e.body,t).then(function(e,t){c._handleSaveResponse(e,t)},function(e){return c._handleSaveError(),m.default.error(e)})};return r.pushPendingState(e._getStateIdentifier()),r.enqueueTask(e._getStateIdentifier(),d).then(function(){return e},function(e){return m.default.error(e)})}return m.default.as()}};u.default.setObjectController(I),t.default=N},function(e,t,n){"use strict";(function(t){function r(e,t,n){t.forEach(function(t){if("function"!=typeof n[t])throw new Error(e+" must implement "+t+"()")})}var o={IS_NODE:void 0!==t&&!!t.versions&&!!t.versions.node&&!t.versions.electron,REQUEST_ATTEMPT_LIMIT:5,SERVER_URL:"https://api.cmetamap.com/1",LIVEQUERY_SERVER_URL:null,VERSION:"js"+n(28).version,APPLICATION_ID:null,JAVASCRIPT_KEY:null,MASTER_KEY:null,USE_MASTER_KEY:!1,PERFORM_USER_REWRITE:!0,FORCE_REVOCABLE_SESSION:!1,ALLOW_ANONYMOUS_KEY:null,USE_ALLOW_ANONYMOUS_KEY:!1};e.exports={get:function(e){if(o.hasOwnProperty(e))return o[e];throw new Error("Configuration key not found: "+e)},set:function(e,t){o[e]=t},setAnalyticsController:function(e){r("AnalyticsController",["track"],e),o.AnalyticsController=e},getAnalyticsController:function(){return o.AnalyticsController},setCloudController:function(e){r("CloudController",["run","getJobsData","startJob"],e),o.CloudController=e},getCloudController:function(){return o.CloudController},setConfigController:function(e){r("ConfigController",["current","get"],e),o.ConfigController=e},getConfigController:function(){return o.ConfigController},setFileController:function(e){r("FileController",["saveFile","saveBase64"],e),o.FileController=e},getFileController:function(){return o.FileController},setInstallationController:function(e){r("InstallationController",["currentInstallationId"],e),o.InstallationController=e},getInstallationController:function(){return o.InstallationController},setObjectController:function(e){r("ObjectController",["save","fetch","destroy"],e),o.ObjectController=e},getObjectController:function(){return o.ObjectController},setObjectStateController:function(e){r("ObjectStateController",["getState","initializeState","removeState","getServerData","setServerData","getPendingOps","setPendingOp","pushPendingState","popPendingState","mergeFirstPendingState","getObjectCache","estimateAttribute","estimateAttributes","commitServerChanges","enqueueTask","clearAllState"],e),o.ObjectStateController=e},getObjectStateController:function(){return o.ObjectStateController},setPushController:function(e){r("PushController",["send"],e),o.PushController=e},getPushController:function(){return o.PushController},setQueryController:function(e){r("QueryController",["find","aggregate"],e),o.QueryController=e},getQueryController:function(){return o.QueryController},setRESTController:function(e){r("RESTController",["request","ajax"],e),o.RESTController=e},getRESTController:function(){return o.RESTController},setSchemaController:function(e){r("SchemaController",["get","create","update","delete","send","purge"],e),o.SchemaController=e},getSchemaController:function(){return o.SchemaController},setSessionController:function(e){r("SessionController",["getSession"],e),o.SessionController=e},getSessionController:function(){return o.SessionController},setStorageController:function(e){e.async?r("An async StorageController",["getItemAsync","setItemAsync","removeItemAsync"],e):r("A synchronous StorageController",["getItem","setItem","removeItem"],e),o.StorageController=e},getStorageController:function(){return o.StorageController},setAsyncStorage:function(e){o.AsyncStorage=e},getAsyncStorage:function(){return o.AsyncStorage},setUserController:function(e){r("UserController",["setCurrentUser","currentUser","currentUserAsync","signUp","logIn","become","logOut","requestPasswordReset","upgradeToRevocableSession","linkWith"],e),o.UserController=e},getUserController:function(){return o.UserController},setLiveQueryController:function(e){r("LiveQueryController",["subscribe","unsubscribe","open","close"],e),o.LiveQueryController=e},getLiveQueryController:function(){return o.LiveQueryController},setHooksController:function(e){r("HooksController",["create","get","update","remove"],e),o.HooksController=e},getHooksController:function(){return o.HooksController}}}).call(t,n(14))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.code=t,this.message=n}return r(e,[{key:"toString",value:function(){return"MmbsError: "+this.code+" "+this.message}}]),e}();o.OTHER_CAUSE=-1,o.INTERNAL_SERVER_ERROR=1,o.CONNECTION_FAILED=100,o.OBJECT_NOT_FOUND=101,o.INVALID_QUERY=102,o.INVALID_CLASS_NAME=103,o.MISSING_OBJECT_ID=104,o.INVALID_KEY_NAME=105,o.INVALID_POINTER=106,o.INVALID_JSON=107,o.COMMAND_UNAVAILABLE=108,o.NOT_INITIALIZED=109,o.INCORRECT_TYPE=111,o.INVALID_CHANNEL_NAME=112,o.PUSH_MISCONFIGURED=115,o.OBJECT_TOO_LARGE=116,o.OPERATION_FORBIDDEN=119,o.CACHE_MISS=120,o.INVALID_NESTED_KEY=121,o.INVALID_FILE_NAME=122,o.INVALID_ACL=123,o.TIMEOUT=124,o.INVALID_EMAIL_ADDRESS=125,o.MISSING_CONTENT_TYPE=126,o.MISSING_CONTENT_LENGTH=127,o.INVALID_CONTENT_LENGTH=128,o.FILE_TOO_LARGE=129,o.FILE_SAVE_ERROR=130,o.DUPLICATE_VALUE=137,o.INVALID_ROLE_NAME=139,o.EXCEEDED_QUOTA=140,o.SCRIPT_FAILED=141,o.VALIDATION_ERROR=142,o.INVALID_IMAGE_DATA=143,o.UNSAVED_FILE_ERROR=151,o.INVALID_PUSH_TIME_ERROR=152,o.FILE_DELETE_ERROR=153,o.REQUEST_LIMIT_EXCEEDED=155,o.INVALID_EVENT_NAME=160,o.USERNAME_MISSING=200,o.PASSWORD_MISSING=201,o.USERNAME_TAKEN=202,o.EMAIL_TAKEN=203,o.EMAIL_MISSING=204,o.EMAIL_NOT_FOUND=205,o.SESSION_MISSING=206,o.MUST_CREATE_USER_THROUGH_SIGNUP=207,o.ACCOUNT_ALREADY_LINKED=208,o.INVALID_SESSION_TOKEN=209,o.LINKED_ID_MISSING=250,o.INVALID_LINKED_SESSION=251,o.UNSUPPORTED_SERVICE=252,o.INVALID_SCHEMA_OPERATION=255,o.AGGREGATE_ERROR=600,o.FILE_READ_ERROR=601,o.X_DOMAIN_REQUEST=602,t.default=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e<26)return String.fromCharCode(65+e);if(e<52)return String.fromCharCode(e-26+97);if(e<62)return String.fromCharCode(e-52+48);if(62===e)return"+";if(63===e)return"/";throw new TypeError("Tried to encode large digit "+e+" in base64.")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(2)),a=(r(n(0)),/^data:([a-zA-Z]+\/[-a-zA-Z0-9+.]+)(;charset=[a-zA-Z0-9\-\/]*)?;base64,/),u=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var o=r||"";if(this._name=t,void 0!==n)if(Array.isArray(n))this._source={format:"base64",base64:e.encodeBase64(n),type:o};else if("undefined"!=typeof File&&n instanceof File)this._source={format:"file",file:n,type:o};else{if(!n||"string"!=typeof n.base64)throw new TypeError("Cannot create a Mmbs.File with that data.");var i=n.base64,s=i.indexOf(",");if(-1!==s){var u=a.exec(i.slice(0,s+1));this._source={format:"base64",base64:i.slice(s+1),type:u[1]}}else this._source={format:"base64",base64:i,type:o}}}return i(e,[{key:"name",value:function(){return this._name.substr(this._name.indexOf("_")+1)}},{key:"fname",value:function(){return this._name}},{key:"url",value:function(e){if(e=e||{},this._url)return e.forceSecure?this._url.replace(/^http:\/\//i,"https://"):this._url}},{key:"save",value:function(e){var t=this;e=e||{};var n=s.default.getFileController();if(this._previousSave||("file"===this._source.format?this._previousSave=n.saveFile(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t}):this._previousSave=n.saveBase64(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t})),this._previousSave)return this._previousSave._thenRunCallbacks(e)}},{key:"toJSON",value:function(){return{__type:"File",name:this._name,url:this._url}}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.name()===t.name()&&this.url()===t.url()&&void 0!==this.url()}}],[{key:"fromJSON",value:function(t){if("File"!==t.__type)throw new TypeError("JSON object does not represent a MmbsFile");var n=new e(t.name);return n._url=t.url,n}},{key:"encodeBase64",value:function(e){var t=[];t.length=Math.ceil(e.length/3);for(var n=0;n<t.length;n++){var r=e[3*n],i=e[3*n+1]||0,s=e[3*n+2]||0,a=3*n+1<e.length,u=3*n+2<e.length;t[n]=[o(r>>2&63),o(r<<4&48|i>>4&15),a?o(i<<2&60|s>>6&3):"=",u?o(63&s):"="].join("")}return t.join("")}}]),e}(),l={saveFile:function(e,t){if("file"!==t.format)throw new Error("saveFile can only be used with File-type sources.");var n={"X-Mmbs-Application-ID":s.default.get("APPLICATION_ID"),"X-Mmbs-JavaScript-Key":s.default.get("JAVASCRIPT_KEY"),"Content-Type":t.type||(t.file?t.file.type:null)},r=s.default.get("SERVER_URL");return"/"!==r[r.length-1]&&(r+="/"),r+="files/"+e,s.default.getRESTController().ajax("POST",r,t.file,n)},saveBase64:function(e,t,n){if("base64"!==t.format)throw new Error("saveBase64 can only be used with Base64-type sources.");var r={base64:t.base64};t.type&&(r._ContentType=t.type);var o="files/"+e;return s.default.getRESTController().request("POST",o,r,n)}};s.default.setFileController(l),t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(8),s=(r(n(1)),r(n(11))),a=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.key=n,this.targetClassName=null}return o(e,[{key:"_ensureParentAndKey",value:function(e,t){if(this.key=this.key||t,this.key!==t)throw new Error("Internal Error. Relation retrieved from two different keys.");if(this.parent){if(this.parent.className!==e.className)throw new Error("Internal Error. Relation retrieved from two different Objects.");if(this.parent.id){if(this.parent.id!==e.id)throw new Error("Internal Error. Relation retrieved from two different Objects.")}else e.id&&(this.parent=e)}else this.parent=e}},{key:"add",value:function(e){Array.isArray(e)||(e=[e]);var t=new i.RelationOp(e,[]),n=this.parent;if(!n)throw new Error("Cannot add to a Relation without a parent");return n.set(this.key,t),this.targetClassName=t._targetClassName,n}},{key:"remove",value:function(e){Array.isArray(e)||(e=[e]);var t=new i.RelationOp([],e);if(!this.parent)throw new Error("Cannot remove from a Relation without a parent");this.parent.set(this.key,t),this.targetClassName=t._targetClassName}},{key:"toJSON",value:function(){return{__type:"Relation",className:this.targetClassName}}},{key:"query",value:function(){var e,t=this.parent;if(!t)throw new Error("Cannot construct a query for a Relation without a parent");return this.targetClassName?e=new s.default(this.targetClassName):(e=new s.default(t.className),e._extraOptions.redirectClassNameForKey=this.key),e._addCondition("$relatedTo","object",{__type:"Pointer",className:t.className,objectId:t.id}),e._addCondition("$relatedTo","key",this.key),e}}],[{key:"reverseQuery",value:function(e,t,n){var r=new s.default(e);return r.equalTo(t,n.toPointer()),r}}]),e}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){if(e instanceof f.default){if(t)throw new Error("Mmbs Objects not allowed here");var y=e.id?e.className+":"+e.id:e;return n||!r||r.indexOf(y)>-1||e.dirty()||Object.keys(e._getServerData()).length<1?e.toPointer():(r=r.concat(y),e._toFullJSON(r))}if(e instanceof c.Op||e instanceof s.default||e instanceof u.default||e instanceof l.default||e instanceof d.default)return e.toJSON();if(e instanceof a.default){if(!e.url())throw new Error("Tried to encode an unsaved file.");return e.toJSON()}if("[object Date]"===h.call(e)){if(isNaN(e))throw new Error("Tried to encode an invalid date.");return{__type:"Date",iso:e.toJSON()}}if("[object RegExp]"===h.call(e)&&"string"==typeof e.source)return e.source;if(Array.isArray(e))return e.map(function(e){return o(e,t,n,r)});if(e&&"object"===(void 0===e?"undefined":i(e))){var p={};for(var v in e)p[v]=o(e[v],t,n,r);return p}return e}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t,n,r){return o(e,!!t,!!n,r||[])};var s=r(n(7)),a=r(n(4)),u=r(n(9)),l=r(n(13)),f=r(n(1)),c=n(8),d=r(n(5)),h=Object.prototype.toString},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(17)),a=r(n(15)),u=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.permissionsById={},t&&"object"===(void 0===t?"undefined":o(t)))if(t instanceof a.default)this.setReadAccess(t,!0),this.setWriteAccess(t,!0);else for(var n in t){var r=t[n];if("string"!=typeof n)throw new TypeError("Tried to create an ACL with an invalid user id.");this.permissionsById[n]={};for(var i in r){var s=r[i];if("read"!==i&&"write"!==i)throw new TypeError("Tried to create an ACL with an invalid permission type.");if("boolean"!=typeof s)throw new TypeError("Tried to create an ACL with an invalid permission value.");this.permissionsById[n][i]=s}}else if("function"==typeof t)throw new TypeError("MmbsACL constructed with a function. Did you forget ()?")}return i(e,[{key:"toJSON",value:function(){var e={};for(var t in this.permissionsById)e[t]=this.permissionsById[t];return e}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var n=Object.keys(this.permissionsById),r=Object.keys(t.permissionsById);if(n.length!==r.length)return!1;for(var o in this.permissionsById){if(!t.permissionsById[o])return!1;if(this.permissionsById[o].read!==t.permissionsById[o].read)return!1;if(this.permissionsById[o].write!==t.permissionsById[o].write)return!1}return!0}},{key:"_setAccess",value:function(e,t,n){if(t instanceof a.default)t=t.id;else if(t instanceof s.default){var r=t.getName();if(!r)throw new TypeError("Role must have a name");t="role:"+r}if("string"!=typeof t)throw new TypeError("userId must be a string.");if("boolean"!=typeof n)throw new TypeError("allowed must be either true or false.");var o=this.permissionsById[t];if(!o){if(!n)return;o={},this.permissionsById[t]=o}n?this.permissionsById[t][e]=!0:(delete o[e],0===Object.keys(o).length&&delete this.permissionsById[t])}},{key:"_getAccess",value:function(e,t){if(t instanceof a.default){if(!(t=t.id))throw new Error("Cannot get access for a MmbsUser without an ID")}else if(t instanceof s.default){var n=t.getName();if(!n)throw new TypeError("Role must have a name");t="role:"+n}var r=this.permissionsById[t];return!!r&&!!r[e]}},{key:"setReadAccess",value:function(e,t){this._setAccess("read",e,t)}},{key:"getReadAccess",value:function(e){return this._getAccess("read",e)}},{key:"setWriteAccess",value:function(e,t){this._setAccess("write",e,t)}},{key:"getWriteAccess",value:function(e){return this._getAccess("write",e)}},{key:"setPublicReadAccess",value:function(e){this.setReadAccess("*",e)}},{key:"getPublicReadAccess",value:function(){return this.getReadAccess("*")}},{key:"setPublicWriteAccess",value:function(e){this.setWriteAccess("*",e)}},{key:"getPublicWriteAccess",value:function(){return this.getWriteAccess("*")}},{key:"getRoleReadAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a MmbsRole or a String");return this.getReadAccess("role:"+e)}},{key:"getRoleWriteAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a MmbsRole or a String");return this.getWriteAccess("role:"+e)}},{key:"setRoleReadAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a MmbsRole or a String");this.setReadAccess("role:"+e,t)}},{key:"setRoleWriteAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a MmbsRole or a String");this.setWriteAccess("role:"+e,t)}}]),e}();t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.RelationOp=t.RemoveOp=t.AddUniqueOp=t.AddOp=t.IncrementOp=t.UnsetOp=t.SetOp=t.Op=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.opFromJSON=function(e){if(!e||!e.__op)return null;switch(e.__op){case"Delete":return new v;case"Increment":return new _(e.amount);case"Add":return new m((0,l.default)(e.objects));case"AddUnique":return new g((0,l.default)(e.objects));case"Remove":return new b((0,l.default)(e.objects));case"AddRelation":var t=(0,l.default)(e.objects);return Array.isArray(t)?new w(t,[]):new w([],[]);case"RemoveRelation":var n=(0,l.default)(e.objects);return Array.isArray(n)?new w([],n):new w([],[]);case"Batch":t=[],n=[];for(var r=0;r<e.ops.length;r++)"AddRelation"===e.ops[r].__op?t=t.concat((0,l.default)(e.ops[r].objects)):"RemoveRelation"===e.ops[r].__op&&(n=n.concat((0,l.default)(e.ops[r].objects)));return new w(t,n)}return null};var u=r(n(18)),l=r(n(10)),f=r(n(6)),c=r(n(1)),d=r(n(5)),h=r(n(19)),y=t.Op=function(){function e(){s(this,e)}return a(e,[{key:"applyTo",value:function(e){}},{key:"mergeWith",value:function(e){}},{key:"toJSON",value:function(){}}]),e}(),p=t.SetOp=function(e){function t(e){s(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._value=e,n}return i(t,y),a(t,[{key:"applyTo",value:function(e){return this._value}},{key:"mergeWith",value:function(e){return new t(this._value)}},{key:"toJSON",value:function(){return(0,f.default)(this._value,!1,!0)}}]),t}(),v=t.UnsetOp=function(e){function t(){return s(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,y),a(t,[{key:"applyTo",value:function(e){}},{key:"mergeWith",value:function(e){return new t}},{key:"toJSON",value:function(){return{__op:"Delete"}}}]),t}(),_=t.IncrementOp=function(e){function t(e){s(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if("number"!=typeof e)throw new TypeError("Increment Op must be initialized with a numeric amount.");return n._amount=e,n}return i(t,y),a(t,[{key:"applyTo",value:function(e){if(void 0===e)return this._amount;if("number"!=typeof e)throw new TypeError("Cannot increment a non-numeric value.");return this._amount+e}},{key:"mergeWith",value:function(e){if(!e)return this;if(e instanceof p)return new p(this.applyTo(e._value));if(e instanceof v)return new p(this._amount);if(e instanceof t)return new t(this.applyTo(e._amount));throw new Error("Cannot merge Increment Op with the previous Op")}},{key:"toJSON",value:function(){return{__op:"Increment",amount:this._amount}}}]),t}(),m=t.AddOp=function(e){function t(e){s(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._value=Array.isArray(e)?e:[e],n}return i(t,y),a(t,[{key:"applyTo",value:function(e){if(null==e)return this._value;if(Array.isArray(e))return e.concat(this._value);throw new Error("Cannot add elements to a non-array value")}},{key:"mergeWith",value:function(e){if(!e)return this;if(e instanceof p)return new p(this.applyTo(e._value));if(e instanceof v)return new p(this._value);if(e instanceof t)return new t(this.applyTo(e._value));throw new Error("Cannot merge Add Op with the previous Op")}},{key:"toJSON",value:function(){return{__op:"Add",objects:(0,f.default)(this._value,!1,!0)}}}]),t}(),g=t.AddUniqueOp=function(e){function t(e){s(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._value=(0,h.default)(Array.isArray(e)?e:[e]),n}return i(t,y),a(t,[{key:"applyTo",value:function(e){if(null==e)return this._value||[];if(Array.isArray(e)){var t=e,n=[];return this._value.forEach(function(e){e instanceof c.default?(0,u.default)(t,e)||n.push(e):t.indexOf(e)<0&&n.push(e)}),e.concat(n)}throw new Error("Cannot add elements to a non-array value")}},{key:"mergeWith",value:function(e){if(!e)return this;if(e instanceof p)return new p(this.applyTo(e._value));if(e instanceof v)return new p(this._value);if(e instanceof t)return new t(this.applyTo(e._value));throw new Error("Cannot merge AddUnique Op with the previous Op")}},{key:"toJSON",value:function(){return{__op:"AddUnique",objects:(0,f.default)(this._value,!1,!0)}}}]),t}(),b=t.RemoveOp=function(e){function t(e){s(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._value=(0,h.default)(Array.isArray(e)?e:[e]),n}return i(t,y),a(t,[{key:"applyTo",value:function(e){if(null==e)return[];if(Array.isArray(e)){var t=e.indexOf(this._value),n=e.concat([]);for(t=0;t<this._value.length;t++){for(var r=n.indexOf(this._value[t]);r>-1;)n.splice(r,1),r=n.indexOf(this._value[t]);if(this._value[t]instanceof c.default&&this._value[t].id)for(var o=0;o<n.length;o++)n[o]instanceof c.default&&this._value[t].id===n[o].id&&(n.splice(o,1),o--)}return n}throw new Error("Cannot remove elements from a non-array value")}},{key:"mergeWith",value:function(e){if(!e)return this;if(e instanceof p)return new p(this.applyTo(e._value));if(e instanceof v)return new v;if(e instanceof t){for(var n=e._value.concat([]),r=0;r<this._value.length;r++)this._value[r]instanceof c.default?(0,u.default)(n,this._value[r])||n.push(this._value[r]):n.indexOf(this._value[r])<0&&n.push(this._value[r]);return new t(n)}throw new Error("Cannot merge Remove Op with the previous Op")}},{key:"toJSON",value:function(){return{__op:"Remove",objects:(0,f.default)(this._value,!1,!0)}}}]),t}(),w=t.RelationOp=function(e){function t(e,n){s(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r._targetClassName=null,Array.isArray(e)&&(r.relationsToAdd=(0,h.default)(e.map(r._extractId,r))),Array.isArray(n)&&(r.relationsToRemove=(0,h.default)(n.map(r._extractId,r))),r}return i(t,y),a(t,[{key:"_extractId",value:function(e){if("string"==typeof e)return e;if(!e.id)throw new Error("You cannot add or remove an unsaved Mmbs Object from a relation");if(this._targetClassName||(this._targetClassName=e.className),this._targetClassName!==e.className)throw new Error("Tried to create a Relation with 2 different object types: "+this._targetClassName+" and "+e.className+".");return e.id}},{key:"applyTo",value:function(e,t,n){if(!e){if(!t||!n)throw new Error("Cannot apply a RelationOp without either a previous value, or an object and a key");var r=new c.default(t.className);t.id&&0===t.id.indexOf("local")?r._localId=t.id:t.id&&(r.id=t.id);var o=new d.default(r,n);return o.targetClassName=this._targetClassName,o}if(e instanceof d.default){if(this._targetClassName)if(e.targetClassName){if(this._targetClassName!==e.targetClassName)throw new Error("Related object must be a "+e.targetClassName+", but a "+this._targetClassName+" was passed in.")}else e.targetClassName=this._targetClassName;return e}throw new Error("Relation cannot be applied to a non-relation field")}},{key:"mergeWith",value:function(e){if(!e)return this;if(e instanceof v)throw new Error("You cannot modify a relation after deleting it.");if(e instanceof t){if(e._targetClassName&&e._targetClassName!==this._targetClassName)throw new Error("Related object must be of class "+e._targetClassName+", but "+(this._targetClassName||"null")+" was passed in.");var n=e.relationsToAdd.concat([]);this.relationsToRemove.forEach(function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)}),this.relationsToAdd.forEach(function(e){n.indexOf(e)<0&&n.push(e)});var r=e.relationsToRemove.concat([]);this.relationsToAdd.forEach(function(e){var t=r.indexOf(e);t>-1&&r.splice(t,1)}),this.relationsToRemove.forEach(function(e){r.indexOf(e)<0&&r.push(e)});var o=new t(n,r);return o._targetClassName=this._targetClassName,o}throw new Error("Cannot merge Relation Op with the previous Op")}},{key:"toJSON",value:function(){var e=this,t=function(t){return{__type:"Pointer",className:e._targetClassName,objectId:t}},n=null,r=null;return this.relationsToAdd.length>0&&(n={__op:"AddRelation",objects:this.relationsToAdd.map(t)}),this.relationsToRemove.length>0&&(r={__op:"RemoveRelation",objects:this.relationsToRemove.map(t)}),n&&r?{__op:"Batch",ops:[n,r]}:n||r||{}}}]),t}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),s=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Array.isArray(t)?(e._validate(t[0],t[1]),this._latitude=t[0],this._longitude=t[1]):"object"===(void 0===t?"undefined":r(t))?(e._validate(t.latitude,t.longitude),this._latitude=t.latitude,this._longitude=t.longitude):"number"==typeof t&&"number"==typeof n?(e._validate(t,n),this._latitude=t,this._longitude=n):(this._latitude=0,this._longitude=0)}return o(e,[{key:"toJSON",value:function(){return e._validate(this._latitude,this._longitude),{__type:"GeoPoint",latitude:this._latitude,longitude:this._longitude}}},{key:"equals",value:function(t){return t instanceof e&&this.latitude===t.latitude&&this.longitude===t.longitude}},{key:"radiansTo",value:function(e){var t=Math.PI/180,n=this.latitude*t,r=this.longitude*t,o=e.latitude*t,i=n-o,s=r-e.longitude*t,a=Math.sin(i/2),u=Math.sin(s/2),l=a*a+Math.cos(n)*Math.cos(o)*u*u;return l=Math.min(1,l),2*Math.asin(Math.sqrt(l))}},{key:"kilometersTo",value:function(e){return 6371*this.radiansTo(e)}},{key:"milesTo",value:function(e){return 3958.8*this.radiansTo(e)}},{key:"latitude",get:function(){return this._latitude},set:function(t){e._validate(t,this.longitude),this._latitude=t}},{key:"longitude",get:function(){return this._longitude},set:function(t){e._validate(this.latitude,t),this._longitude=t}}],[{key:"_validate",value:function(e,t){if(e!=e||t!=t)throw new TypeError("GeoPoint latitude and longitude must be valid numbers");if(e<-90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" < -90.0.");if(e>90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" > 90.0.");if(t<-180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" < -180.0.");if(t>180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" > 180.0.")}},{key:"current",value:function(t){var n=new i.default;return navigator.geolocation.getCurrentPosition(function(t){n.resolve(new e(t.coords.latitude,t.coords.longitude))},function(e){n.reject(e)}),n._thenRunCallbacks(t)}}]),e}();t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(null===e||"object"!==(void 0===e?"undefined":i(e)))return e;if(Array.isArray(e)){var t=[];return e.forEach(function(e,n){t[n]=o(e)}),t}if("string"==typeof e.__op)return(0,f.opFromJSON)(e);if("Pointer"===e.__type&&e.className)return l.default.fromJSON(e);if("Object"===e.__type&&e.className)return l.default.fromJSON(e);if("Relation"===e.__type){var n=new c.default(null,null);return n.targetClassName=e.className,n}if("Date"===e.__type)return new Date(e.iso);if("File"===e.__type)return s.default.fromJSON(e);if("GeoPoint"===e.__type)return new a.default({latitude:e.latitude,longitude:e.longitude});if("Polygon"===e.__type)return new u.default(e.coordinates);var r={};for(var d in e)r[d]=o(e[d]);return r}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;r(n(7));var s=r(n(4)),a=r(n(9)),u=r(n(13)),l=r(n(1)),f=n(8),c=r(n(5))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"\\Q"+e.replace("\\E","\\E\\\\E\\Q")+"\\E"}function i(e){var t=null;return e.forEach(function(e){if(t||(t=e.className),t!==e.className)throw new Error("All queries must be for the same class.")}),t}function s(e,t){var n={};if(t.forEach(function(t){var r=-1!==t.indexOf(".");if(r||e.hasOwnProperty(t)){if(r){var o=t.split("."),i=e,s=n;o.forEach(function(e,t,n){i&&!i.hasOwnProperty(e)&&(i[e]=void 0),void 0!==i&&(i=i[e]),t<n.length-1&&(s[e]||(s[e]={}),s=s[e])})}}else e[t]=void 0}),Object.keys(n).length>0){!function e(t,n,r,o){if(o)for(var i in t)t.hasOwnProperty(i)&&!n.hasOwnProperty(i)&&(n[i]=t[i]);for(var i in r)void 0!==n[i]&&null!==n[i]&&void 0!==t&&null!==t&&e(t[i],n[i],r[i],!0)}(l.default.getObjectStateController().getServerData({id:e.objectId,className:e.className}),e,n,!1)}}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(2)),f=r(n(6)),c=r(n(3)),d=r(n(9)),h=(r(n(13)),r(n(1))),y=r(n(0)),p=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t)"User"===t&&l.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t;else if(t instanceof h.default)this.className=t.className;else{if("function"!=typeof t)throw new TypeError("A MmbsQuery must be constructed with a MmbsObject or class name.");if("string"==typeof t.className)this.className=t.className;else{var n=new t;this.className=n.className}}this._where={},this._include=[],this._limit=-1,this._skip=0,this._extraOptions={}}return u(e,[{key:"_orQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$or=t,this}},{key:"_andQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$and=t,this}},{key:"_addCondition",value:function(e,t,n){return this._where[e]&&"string"!=typeof this._where[e]||(this._where[e]={}),this._where[e][t]=(0,f.default)(n,!1,!0),this}},{key:"toJSON",value:function(){var e={where:this._where};this._include.length&&(e.include=this._include.join(",")),this._select&&(e.keys=this._select.join(",")),this._limit>=0&&(e.limit=this._limit),this._skip>0&&(e.skip=this._skip),this._order&&(e.order=this._order.join(","));for(var t in this._extraOptions)e[t]=this._extraOptions[t];return e}},{key:"withJSON",value:function(e){e.where&&(this._where=e.where),e.include&&(this._include=e.include.split(",")),e.keys&&(this._select=e.keys.split(",")),e.limit&&(this._limit=e.limit),e.skip&&(this._skip=e.skip),e.order&&(this._order=e.order.split(","));for(var t in e)e.hasOwnProperty(t)&&-1===["where","include","keys","limit","skip","order"].indexOf(t)&&(this._extraOptions[t]=e[t]);return this}},{key:"get",value:function(e,t){this.equalTo("objectId",e);var n={};return t&&t.hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t&&t.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=t.useAllowAnonymousKey),t&&t.hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken),this.first(n).then(function(e){if(e)return e;var t=new c.default(c.default.OBJECT_NOT_FOUND,"Object not found.");return y.default.error(t)})._thenRunCallbacks(t,null)}},{key:"find",value:function(e){var t=this,n={};(e=e||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=e.useMasterKey),e.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=e.useAllowAnonymousKey),e.hasOwnProperty("sessionToken")&&(n.sessionToken=e.sessionToken);var r=l.default.getQueryController(),o=this._select;return r.find(this.className,this.toJSON(),n).then(function(e){return e.results.map(function(n){var r=e.className||t.className;return n.className||(n.className=r),o&&s(n,o),h.default.fromJSON(n,!o)})})._thenRunCallbacks(e)}},{key:"count",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("useAllowAnonymousKey")&&(t.useAllowAnonymousKey=e.useAllowAnonymousKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);var n=l.default.getQueryController(),r=this.toJSON();return r.limit=0,r.count=1,n.find(this.className,r,t).then(function(e){return e.count})._thenRunCallbacks(e)}},{key:"distinct",value:function(e,t){var n={};(t=t||{}).hasOwnProperty("sessionToken")&&(n.sessionToken=t.sessionToken);var r=l.default.getQueryController(),o={distinct:e,where:this._where};return r.aggregate(this.className,o,n).then(function(e){return e.results})._thenRunCallbacks(t)}},{key:"aggregate",value:function(e,t,n){n=n||{};var r=t||{};n.hasOwnProperty("sessionToken")&&(r.sessionToken=n.sessionToken);var o=l.default.getQueryController(),i={};if(Array.isArray(e))e.forEach(function(e){for(var t in e)i[t]=e[t]});else{if(!e||"object"!==(void 0===e?"undefined":a(e)))throw new Error("Invalid pipeline must be Array or Object");if(0!=Object.keys(this._where).length){i.match=this._where;for(var s in e)i[s]=e[s]}else i=e}return o.aggregate(this.className,i,r).then(function(e){return e.results})._thenRunCallbacks(n)}},{key:"first",value:function(e){var t=this,n={};(e=e||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=e.useMasterKey),e.hasOwnProperty("useAllowAnonymousKey")&&(n.useAllowAnonymousKey=e.useAllowAnonymousKey),e.hasOwnProperty("sessionToken")&&(n.sessionToken=e.sessionToken);var r=l.default.getQueryController(),o=this.toJSON();o.limit=1;var i=this._select;return r.find(this.className,o,n).then(function(e){var n=e.results;if(n[0])return n[0].className||(n[0].className=t.className),i&&s(n[0],i),h.default.fromJSON(n[0],!i)})._thenRunCallbacks(e)}},{key:"each",value:function(t,n){if(n=n||{},this._order||this._skip||this._limit>=0){return y.default.error("Cannot iterate on a query with sort, skip, or limit.")._thenRunCallbacks(n)}new y.default;var r=new e(this.className);r._limit=n.batchSize||100,r._include=this._include.map(function(e){return e}),this._select&&(r._select=this._select.map(function(e){return e})),r._where={};for(var o in this._where){var i=this._where[o];if(Array.isArray(i))r._where[o]=i.map(function(e){return e});else if(i&&"object"===(void 0===i?"undefined":a(i))){var s={};r._where[o]=s;for(var u in i)s[u]=i[u]}else r._where[o]=i}r.ascending("objectId");var l={};n.hasOwnProperty("useMasterKey")&&(l.useMasterKey=n.useMasterKey),n.hasOwnProperty("useAllowAnonymousKey")&&(l.useAllowAnonymousKey=n.useAllowAnonymousKey),n.hasOwnProperty("sessionToken")&&(l.sessionToken=n.sessionToken);var f=!1;return y.default._continueWhile(function(){return!f},function(){return r.find(l).then(function(e){var n=y.default.as();return e.forEach(function(e){n=n.then(function(){return t(e)})}),n.then(function(){e.length>=r._limit?r.greaterThan("objectId",e[e.length-1].id):f=!0})})})._thenRunCallbacks(n)}},{key:"equalTo",value:function(e,t){return void 0===t?this.doesNotExist(e):(this._where[e]=(0,f.default)(t,!1,!0),this)}},{key:"notEqualTo",value:function(e,t){return this._addCondition(e,"$ne",t)}},{key:"lessThan",value:function(e,t){return this._addCondition(e,"$lt",t)}},{key:"greaterThan",value:function(e,t){return this._addCondition(e,"$gt",t)}},{key:"lessThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$lte",t)}},{key:"greaterThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$gte",t)}},{key:"containedIn",value:function(e,t){return t&&0==t.length?this.doesNotExist(e):this._addCondition(e,"$in",t)}},{key:"notContainedIn",value:function(e,t){return t&&0==t.length?this.exists(e):this._addCondition(e,"$nin",t)}},{key:"containsAll",value:function(e,t){return this._addCondition(e,"$all",t)}},{key:"exists",value:function(e){return this._addCondition(e,"$exists",!0)}},{key:"doesNotExist",value:function(e){return this._addCondition(e,"$exists",!1)}},{key:"matches",value:function(e,t,n){return this._addCondition(e,"$regex",t),n||(n=""),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),n.length&&this._addCondition(e,"$options",n),this}},{key:"matchesQuery",value:function(e,t){var n=t.toJSON();return n.className=t.className,this._addCondition(e,"$inQuery",n)}},{key:"doesNotMatchQuery",value:function(e,t){var n=t.toJSON();return n.className=t.className,this._addCondition(e,"$notInQuery",n)}},{key:"matchesKeyInQueryEx",value:function(e){if(!e)return null;var t=e.key,n=e.queryKey,r=e.query,o=!1!==e.join;if(e.nomatch||!1)return this.doesNotMatchKeyInQuery(t,n,r);if(o){var i=r.toJSON();return i.className=r.className,this._addCondition(t,"$joinselect",{key:n,query:i})}return this.matchesKeyInQuery(t,n,r)}},{key:"matchesKeyInQuery",value:function(e,t,n){var r=n.toJSON();return r.className=n.className,this._addCondition(e,"$select",{key:t,query:r})}},{key:"doesNotMatchKeyInQuery",value:function(e,t,n){var r=n.toJSON();return r.className=n.className,this._addCondition(e,"$dontSelect",{key:t,query:r})}},{key:"contains",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",o(t))}},{key:"fullText",value:function(e,t){if(!e)throw new Error("A key is required.");if(!t)throw new Error("A search term is required");if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$text",{$search:{$term:t}})}},{key:"startsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex","^"+o(t))}},{key:"endsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",o(t)+"$")}},{key:"near",value:function(e,t){return t instanceof d.default||(t=new d.default(t)),this._addCondition(e,"$nearSphere",t)}},{key:"withinRadians",value:function(e,t,n){return this.near(e,t),this._addCondition(e,"$maxDistance",n)}},{key:"withinMiles",value:function(e,t,n){return this.withinRadians(e,t,n/3958.8)}},{key:"withinKilometers",value:function(e,t,n){return this.withinRadians(e,t,n/6371)}},{key:"withinGeoBox",value:function(e,t,n){return t instanceof d.default||(t=new d.default(t)),n instanceof d.default||(n=new d.default(n)),this._addCondition(e,"$within",{$box:[t,n]}),this}},{key:"withinPolygon",value:function(e,t){return this._addCondition(e,"$geoWithin",{$polygon:t})}},{key:"polygonContains",value:function(e,t){return this._addCondition(e,"$geoIntersects",{$point:t})}},{key:"ascending",value:function(){this._order=[];for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.addAscending.apply(this,t)}},{key:"addAscending",value:function(){var e=this;this._order||(this._order=[]);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){Array.isArray(t)&&(t=t.join()),e._order=e._order.concat(t.replace(/\s/g,"").split(","))}),this}},{key:"descending",value:function(){this._order=[];for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.addDescending.apply(this,t)}},{key:"addDescending",value:function(){var e=this;this._order||(this._order=[]);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){Array.isArray(t)&&(t=t.join()),e._order=e._order.concat(t.replace(/\s/g,"").split(",").map(function(e){return"-"+e}))}),this}},{key:"skip",value:function(e){if("number"!=typeof e||e<0)throw new Error("You can only skip by a positive number");return this._skip=e,this}},{key:"limit",value:function(e){if("number"!=typeof e)throw new Error("You can only set the limit to a numeric value");return this._limit=e,this}},{key:"include",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){Array.isArray(t)?e._include=e._include.concat(t):e._include.push(t)}),this}},{key:"select",value:function(){var e=this;this._select||(this._select=[]);for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){Array.isArray(t)?e._select=e._select.concat(t):e._select.push(t)}),this}},{key:"subscribe",value:function(){return l.default.getLiveQueryController().subscribe(this)}}],[{key:"fromJSON",value:function(t,n){return new e(t).withJSON(n)}},{key:"or",value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=new e(i(n));return o._orQuery(n),o}},{key:"and",value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=new e(i(n));return o._andQuery(n),o}}]),e}(),v={find:function(e,t,n){return l.default.getRESTController().request("GET","classes/"+e,t,n)},aggregate:function(e,t,n){return l.default.getRESTController().request("GET","aggregate/"+e,t,n)}};l.default.setQueryController(v),t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n(2)),i=r(n(0)),s={async:function(){return!!o.default.getStorageController().async},getItem:function(e){var t=o.default.getStorageController();if(1===t.async)throw new Error("Synchronous storage is not supported by the current storage controller");return t.getItem(e)},getItemAsync:function(e){var t=o.default.getStorageController();return 1===t.async?t.getItemAsync(e):i.default.as(t.getItem(e))},setItem:function(e,t){var n=o.default.getStorageController();if(1===n.async)throw new Error("Synchronous storage is not supported by the current storage controller");return n.setItem(e,t)},setItemAsync:function(e,t){var n=o.default.getStorageController();return 1===n.async?n.setItemAsync(e,t):i.default.as(n.setItem(e,t))},removeItem:function(e){var t=o.default.getStorageController();if(1===t.async)throw new Error("Synchronous storage is not supported by the current storage controller");return t.removeItem(e)},removeItemAsync:function(e){var t=o.default.getStorageController();return 1===t.async?t.removeItemAsync(e):i.default.as(t.removeItem(e))},generatePath:function(e){if(!o.default.get("APPLICATION_ID"))throw new Error("You need to call Mmbs.initialize before using Mmbs.");if("string"!=typeof e)throw new Error("Tried to get a Storage path that was not a String.");return"/"===e[0]&&(e=e.substr(1)),"Mmbs/"+o.default.get("APPLICATION_ID")+"/"+e},_clear:function(){var e=o.default.getStorageController();e.hasOwnProperty("clear")&&e.clear()}};e.exports=s,o.default.setStorageController(n(35))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(9)),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._coordinates=e._validate(t)}return r(e,[{key:"toJSON",value:function(){return e._validate(this._coordinates),{__type:"Polygon",coordinates:this._coordinates}}},{key:"equals",value:function(t){if(!(t instanceof e)||this.coordinates.length!==t.coordinates.length)return!1;for(var n=!0,r=1;r<this._coordinates.length;r+=1)if(this._coordinates[r][0]!=t.coordinates[r][0]||this._coordinates[r][1]!=t.coordinates[r][1]){n=!1;break}return n}},{key:"containsPoint",value:function(e){for(var t=this._coordinates[0][0],n=this._coordinates[0][0],r=this._coordinates[0][1],o=this._coordinates[0][1],i=1;i<this._coordinates.length;i+=1){var s=this._coordinates[i];t=Math.min(s[0],t),n=Math.max(s[0],n),r=Math.min(s[1],r),o=Math.max(s[1],o)}if(e.latitude<t||e.latitude>n||e.longitude<r||e.longitude>o)return!1;for(var a=!1,u=0,l=this._coordinates.length-1;u<this._coordinates.length;l=u++){var f=this._coordinates[u][0],c=this._coordinates[u][1],d=this._coordinates[l][0],h=this._coordinates[l][1];c>e.longitude!=h>e.longitude&&e.latitude<(d-f)*(e.longitude-c)/(h-c)+f&&(a=!a)}return a}},{key:"coordinates",get:function(){return this._coordinates},set:function(t){this._coordinates=e._validate(t)}}],[{key:"_validate",value:function(e){if(!Array.isArray(e))throw new TypeError("Coordinates must be an Array");if(e.length<3)throw new TypeError("Polygon must have at least 3 GeoPoints or Points");for(var t=[],n=0;n<e.length;n+=1){var r=e[n],i=void 0;if(r instanceof o.default)i=r;else{if(!Array.isArray(r)||2!==r.length)throw new TypeError("Coordinates must be an Array of GeoPoints or Points");i=new o.default(r[0],r[1])}t.push([i.latitude,i.longitude])}return t}}]),e}();t.default=i},function(e,t,n){"use strict";function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function s(){p&&h&&(p=!1,h.length?y=h.concat(y):v=-1,y.length&&a())}function a(){if(!p){var e=i(s);p=!0;for(var t=y.length;t;){for(h=y,y=[];++v<t;)h&&h[v].run();v=-1,t=y.length}h=null,p=!1,function(e){if(c===clearTimeout)return clearTimeout(e);if((c===o||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var f,c,d=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{c="function"==typeof clearTimeout?clearTimeout:o}catch(e){c=o}}();var h,y=[],p=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new u(e,t)),1!==y.length||p||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)},a=r(n(2)),u=r(n(23)),l=r(n(3)),f=r(n(1)),c=r(n(0)),d=r(n(24)),h=r(n(12)),y="currentUser",p=!a.default.get("IS_NODE"),v=!1,_=null,m={},g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"_User"));if(e&&"object"===(void 0===e?"undefined":o(e))&&!n.set(e||{}))throw new Error("Can't create an invalid Mmbs User");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,f.default),i(t,[{key:"_upgradeToRevocableSession",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey);return a.default.getUserController().upgradeToRevocableSession(this,t)._thenRunCallbacks(e)}},{key:"_linkWith",value:function(e,t){var n,r=this;if("string"==typeof e?(n=e,e=m[e]):n=e.getAuthType(),t&&t.hasOwnProperty("authData")){var i=this.get("authData")||{};if("object"!==(void 0===i?"undefined":o(i)))throw new Error("Invalid type: authData field should be an object");i[n]=t.authData;return a.default.getUserController().linkWith(this,i)._thenRunCallbacks(t,this)}var s=new c.default;return e.authenticate({success:function(e,n){var o={};o.authData=n,t.success&&(o.success=t.success),t.error&&(o.error=t.error),r._linkWith(e,o).then(function(){s.resolve(r)},function(e){s.reject(e)})},error:function(e,n){"function"==typeof t.error&&t.error(r,n),s.reject(n)}}),s}},{key:"_synchronizeAuthData",value:function(e){if(this.isCurrent()&&e){var t;"string"==typeof e?e=m[t=e]:t=e.getAuthType();var n=this.get("authData");if(e&&n&&"object"===(void 0===n?"undefined":o(n))){e.restoreAuthentication(n[t])||this._unlinkFrom(e)}}}},{key:"_synchronizeAllAuthData",value:function(){var e=this.get("authData");if("object"===(void 0===e?"undefined":o(e)))for(var t in e)this._synchronizeAuthData(t)}},{key:"_cleanupAuthData",value:function(){if(this.isCurrent()){var e=this.get("authData");if("object"===(void 0===e?"undefined":o(e)))for(var t in e)e[t]||delete e[t]}}},{key:"_unlinkFrom",value:function(e,t){var n=this;return"string"==typeof e?(e,e=m[e]):e.getAuthType(),this._linkWith(e,{authData:null}).then(function(){return n._synchronizeAuthData(e),c.default.as(n)})._thenRunCallbacks(t)}},{key:"_isLinked",value:function(e){var t;t="string"==typeof e?e:e.getAuthType();var n=this.get("authData")||{};return"object"===(void 0===n?"undefined":o(n))&&!!n[t]}},{key:"_logOutWithAll",value:function(){var e=this.get("authData");if("object"===(void 0===e?"undefined":o(e)))for(var t in e)this._logOutWith(t)}},{key:"_logOutWith",value:function(e){this.isCurrent()&&("string"==typeof e&&(e=m[e]),e&&e.deauthenticate&&e.deauthenticate())}},{key:"_preserveFieldsOnFetch",value:function(){return{sessionToken:this.get("sessionToken")}}},{key:"isCurrent",value:function(){var e=t.current();return!!e&&e.id===this.id}},{key:"getUsername",value:function(){var e=this.get("username");return null==e||"string"==typeof e?e:""}},{key:"setUsername",value:function(e){var t=this.get("authData");t&&"object"===(void 0===t?"undefined":o(t))&&t.hasOwnProperty("anonymous")&&(t.anonymous=null),this.set("username",e)}},{key:"setPassword",value:function(e){this.set("password",e)}},{key:"getEmail",value:function(){var e=this.get("email");return null==e||"string"==typeof e?e:""}},{key:"setEmail",value:function(e){this.set("email",e)}},{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return null==e||"string"==typeof e?e:""}},{key:"authenticated",value:function(){var e=t.current();return!!this.get("sessionToken")&&!!e&&e.id===this.id}},{key:"signUp",value:function(e,t){var n={};(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(n.installationId=t.installationId);return a.default.getUserController().signUp(this,e,n)._thenRunCallbacks(t,this)}},{key:"logIn",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("installationId")&&(t.installationId=e.installationId);return a.default.getUserController().logIn(this,t)._thenRunCallbacks(e,this)}},{key:"save",value:function(){for(var e=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"save",this).apply(this,r).then(function(){return e.isCurrent()?a.default.getUserController().updateUserOnDisk(e):e})}},{key:"destroy",value:function(){for(var e=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).apply(this,r).then(function(){return e.isCurrent()?a.default.getUserController().removeUserFromDisk():e})}},{key:"fetch",value:function(){for(var e=this,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fetch",this).apply(this,r).then(function(){return e.isCurrent()?a.default.getUserController().updateUserOnDisk(e):e})}}],[{key:"readOnlyAttributes",value:function(){return["sessionToken"]}},{key:"extend",value:function(e,n){if(e)for(var r in e)"className"!==r&&Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1,writable:!0,configurable:!0});if(n)for(var r in n)"className"!==r&&Object.defineProperty(t,r,{value:n[r],enumerable:!1,writable:!0,configurable:!0});return t}},{key:"current",value:function(){if(!p)return null;return a.default.getUserController().currentUser()}},{key:"currentAsync",value:function(){if(!p)return c.default.as(null);return a.default.getUserController().currentUserAsync()}},{key:"signUp",value:function(e,n,r,o){(r=r||{}).username=e,r.password=n;return new t(r).signUp({},o)}},{key:"logIn",value:function(e,n,r){if("string"!=typeof e)return c.default.error(new l.default(l.default.OTHER_CAUSE,"Username must be a string."));if("string"!=typeof n)return c.default.error(new l.default(l.default.OTHER_CAUSE,"Password must be a string."));var o=new t;return o._finishFetch({username:e,password:n}),o.logIn(r)}},{key:"become",value:function(e,t){if(!p)throw new Error("It is not memory-safe to become a user in a server environment");var n={sessionToken:e};(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey);return a.default.getUserController().become(n)._thenRunCallbacks(t)}},{key:"logInWith",value:function(e,n){return t._logInWith(e,n)}},{key:"logOut",value:function(){if(!p)throw new Error("There is no current user on a node.js server environment.");return a.default.getUserController().logOut()}},{key:"requestPasswordReset",value:function(e,t){var n={};(t=t||{}).hasOwnProperty("useMasterKey")&&(n.useMasterKey=t.useMasterKey);return a.default.getUserController().requestPasswordReset(e,n)._thenRunCallbacks(t)}},{key:"allowCustomUserClass",value:function(e){a.default.set("PERFORM_USER_REWRITE",!e)}},{key:"enableRevocableSession",value:function(e){if(e=e||{},a.default.set("FORCE_REVOCABLE_SESSION",!0),p){var n=t.current();if(n)return n._upgradeToRevocableSession(e)}return c.default.as()._thenRunCallbacks(e)}},{key:"enableUnsafeCurrentUser",value:function(){p=!0}},{key:"disableUnsafeCurrentUser",value:function(){p=!1}},{key:"_registerAuthenticationProvider",value:function(e){m[e.getAuthType()]=e,t.currentAsync().then(function(t){t&&t._synchronizeAuthData(e.getAuthType())})}},{key:"_logInWith",value:function(e,n){return(new t)._linkWith(e,n)}},{key:"_clearCache",value:function(){_=null,v=!1}},{key:"_setCurrentUserCache",value:function(e){_=e}}]),t}();f.default.registerSubclass("_User",g);var b={updateUserOnDisk:function(e){var t=h.default.generatePath(y),n=e.toJSON();return n.className="_User",h.default.setItemAsync(t,JSON.stringify(n)).then(function(){return e})},removeUserFromDisk:function(){var e=h.default.generatePath(y);return v=!0,_=null,h.default.removeItemAsync(e)},setCurrentUser:function(e){return _=e,e._cleanupAuthData(),e._synchronizeAllAuthData(),b.updateUserOnDisk(e)},currentUser:function(){if(_)return _;if(v)return null;if(h.default.async())throw new Error("Cannot call currentUser() when using a platform with an async storage system. Call currentUserAsync() instead.");var e=h.default.generatePath(y),t=h.default.getItem(e);if(v=!0,!t)return _=null,null;(t=JSON.parse(t)).className||(t.className="_User"),t._id&&(t.objectId!==t._id&&(t.objectId=t._id),delete t._id),t._sessionToken&&(t.sessionToken=t._sessionToken,delete t._sessionToken);var n=f.default.fromJSON(t);return _=n,n._synchronizeAllAuthData(),n},currentUserAsync:function(){if(_)return c.default.as(_);if(v)return c.default.as(null);var e=h.default.generatePath(y);return h.default.getItemAsync(e).then(function(e){if(v=!0,!e)return _=null,c.default.as(null);(e=JSON.parse(e)).className||(e.className="_User"),e._id&&(e.objectId!==e._id&&(e.objectId=e._id),delete e._id),e._sessionToken&&(e.sessionToken=e._sessionToken,delete e._sessionToken);var t=f.default.fromJSON(e);return _=t,t._synchronizeAllAuthData(),c.default.as(t)})},signUp:function(e,t,n){var r=t&&t.username||e.get("username"),o=t&&t.password||e.get("password");return r&&r.length?o&&o.length?e.save(t,n).then(function(){return e._finishFetch({password:void 0}),p?b.setCurrentUser(e):e}):c.default.error(new l.default(l.default.OTHER_CAUSE,"Cannot sign up user with an empty password.")):c.default.error(new l.default(l.default.OTHER_CAUSE,"Cannot sign up user with an empty name."))},logIn:function(e,t){var n=a.default.getRESTController(),r=a.default.getObjectStateController(),o={username:e.get("username"),password:e.get("password")};return n.request("GET","login",o,t).then(function(t,n){return e._migrateId(t.objectId),e._setExisted(!0),r.setPendingOp(e._getStateIdentifier(),"username",void 0),r.setPendingOp(e._getStateIdentifier(),"password",void 0),t.password=void 0,e._finishFetch(t),p?b.setCurrentUser(e):c.default.as(e)})},become:function(e){var t=new g;return a.default.getRESTController().request("GET","users/me",{},e).then(function(e,n){return t._finishFetch(e),t._setExisted(!0),b.setCurrentUser(t)})},logOut:function(){return b.currentUserAsync().then(function(e){var t=h.default.generatePath(y),n=h.default.removeItemAsync(t),r=a.default.getRESTController();if(null!==e){var o=e.getSessionToken();o&&(0,u.default)(o)&&(n=n.then(function(){return r.request("POST","logout",{},{sessionToken:o})})),e._logOutWithAll(),e._finishFetch({sessionToken:void 0})}return v=!0,_=null,n})},requestPasswordReset:function(e,t){return a.default.getRESTController().request("POST","requestPasswordReset",{email:e},t)},upgradeToRevocableSession:function(e,t){var n=e.getSessionToken();if(!n)return c.default.error(new l.default(l.default.SESSION_MISSING,"Cannot upgrade a user with no session token"));t.sessionToken=n;return a.default.getRESTController().request("POST","upgradeToRevocableSession",{},t).then(function(t){var n=new d.default;return n._finishFetch(t),e._finishFetch({sessionToken:n.getSessionToken()}),e.isCurrent()?b.setCurrentUser(e):c.default.as(e)})},linkWith:function(e,t){return e.save({authData:t}).then(function(){return p?b.setCurrentUser(e):e})}};a.default.setUserController(b),t.default=g},function(e,t,n){"use strict";e.exports=n(45).EventEmitter},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(n(7)),s=r(n(3)),a=r(n(1)),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"_Role"));return"string"==typeof e&&n instanceof i.default&&(r.setName(e),r.setACL(n)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),o(t,[{key:"getName",value:function(){var e=this.get("name");return null==e||"string"==typeof e?e:""}},{key:"setName",value:function(e,t){return this.set("name",e,t)}},{key:"getUsers",value:function(){return this.relation("users")}},{key:"getRoles",value:function(){return this.relation("roles")}},{key:"validate",value:function(e,n){var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var s=o.get;if(void 0!==s)return s.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"validate",this).call(this,e,n);if(r)return r;if("name"in e&&e.name!==this.getName()){var o=e.name;if(this.id&&(this.id,e.objectId),"string"!=typeof o)return new s.default(s.default.OTHER_CAUSE,"A role's name must be a String.")}return!1}}]),t}();a.default.registerSubclass("_Role",u),t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.indexOf(t)>-1)return!0;for(var n=0;n<e.length;n++)if(e[n]instanceof r.default&&e[n].className===t.className&&e[n]._getId()===t._getId())return!0;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];return e.forEach(function(e){e instanceof i.default?(0,o.default)(t,e)||t.push(e):t.indexOf(e)<0&&t.push(e)}),t};var o=r(n(18)),i=r(n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/[&<>\/'"]/g,function(e){return r[e]})};var r={"&":"&amp;","<":"&lt;",">":"&gt;","/":"&#x2F;","'":"&#x27;",'"':"&quot;"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.shift();return e.length||(e[0]={}),t}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.defaultState=function(){return{serverData:{},pendingOps:[{}],objectCache:{},tasks:new f.default,existed:!1}},t.setServerData=function(e,t){for(var n in t)void 0!==t[n]?e[n]=t[n]:delete e[n]},t.setPendingOp=function(e,t,n){var r=e.length-1;n?e[r][t]=n:delete e[r][t]},t.pushPendingState=function(e){e.push({})},t.popPendingState=o,t.mergeFirstPendingState=function(e){var t=o(e),n=e[0];for(var r in t)if(n[r]&&t[r]){var i=n[r].mergeWith(t[r]);i&&(n[r]=i)}else n[r]=t[r]},t.estimateAttribute=function(e,t,n,r,o){for(var i=e[o],s=0;s<t.length;s++)t[s][o]&&(t[s][o]instanceof c.RelationOp?r&&(i=t[s][o].applyTo(i,{className:n,id:r},o)):i=t[s][o].applyTo(i));return i},t.estimateAttributes=function(e,t,n,r){var o={},i=void 0;for(i in e)o[i]=e[i];for(var s=0;s<t.length;s++)for(i in t[s])t[s][i]instanceof c.RelationOp?r&&(o[i]=t[s][i].applyTo(o[i],{className:n,id:r},i)):o[i]=t[s][i].applyTo(o[i]);return o},t.commitServerChanges=function(e,t,n){for(var r in n){var o=n[r];if(e[r]=o,o&&"object"===(void 0===o?"undefined":i(o))&&!(o instanceof u.default)&&!(o instanceof a.default)&&!(o instanceof l.default)){var f=(0,s.default)(o,!1,!0);t[r]=JSON.stringify(f)}}};var s=r(n(6)),a=r(n(4)),u=r(n(1)),l=(r(n(0)),r(n(5))),f=r(n(22)),c=n(8)},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queue=[]}return r(e,[{key:"enqueue",value:function(e){var t=this,n=new o.default;return this.queue.push({task:e,_completion:n}),1===this.queue.length&&e().then(function(){t._dequeue(),n.resolve()},function(e){t._dequeue(),n.reject(e)}),n}},{key:"_dequeue",value:function(){var e=this;if(this.queue.shift(),this.queue.length){var t=this.queue[0];t.task().then(function(){e._dequeue(),t._completion.resolve()},function(n){e._dequeue(),t._completion.reject(n)})}}}]),e}();e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.indexOf("r:")>-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(2)),a=r(n(23)),u=r(n(1)),l=r(n(0)),f=r(n(15)),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"_Session"));if(e&&"object"===(void 0===e?"undefined":o(e))&&!n.set(e||{}))throw new Error("Can't create an invalid Session");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default),i(t,[{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return"string"==typeof e?e:""}}],[{key:"readOnlyAttributes",value:function(){return["createdWith","expiresAt","installationId","restricted","sessionToken","user"]}},{key:"current",value:function(e){e=e||{};var t=s.default.getSessionController(),n={};return e.hasOwnProperty("useMasterKey")&&(n.useMasterKey=e.useMasterKey),f.default.currentAsync().then(function(e){if(!e)return l.default.error("There is no current user.");e.getSessionToken();return n.sessionToken=e.getSessionToken(),t.getSession(n)})}},{key:"isCurrentSessionRevocable",value:function(){var e=f.default.current();return!!e&&(0,a.default)(e.getSessionToken()||"")}}]),t}();u.default.registerSubclass("_Session",c);var d={getSession:function(e){var t=s.default.getRESTController(),n=new c;return t.request("GET","sessions/me",{},e).then(function(e){return n._finishFetch(e),n._setExisted(!0),n})}};s.default.setSessionController(d),t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(16)),a=r(n(0)),u=r(n(1)),l=r(n(46)),f={INITIALIZED:"initialized",CONNECTING:"connecting",CONNECTED:"connected",CLOSED:"closed",RECONNECTING:"reconnecting",DISCONNECTED:"disconnected"},c="connect",d="subscribe",h="unsubscribe",y="connected",p="subscribed",v="unsubscribed",_="error",m="close",g="error",b="open",w="open",O="close",S="error",k=function(e){function t(e){var n=e.applicationId,r=e.serverURL,o=e.javascriptKey,i=e.masterKey,s=e.sessionToken,u=e.allowAnonymousKey;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!r||0!==r.indexOf("ws"))throw new Error("You need to set a proper Mmbs LiveQuery server url before using LiveQueryClient");return l.reconnectHandle=null,l.attempts=1,l.id=0,l.requestId=1,l.serverURL=r,l.applicationId=n,l.javascriptKey=o,l.allowAnonymousKey=u,l.masterKey=i,l.sessionToken=s,l.connectPromise=new a.default,l.subscriptions=new Map,l.state=f.INITIALIZED,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),i(t,[{key:"shouldOpen",value:function(){return this.state===f.INITIALIZED||this.state===f.DISCONNECTED}},{key:"subscribe",value:function(e,t){var n=this;if(e){var r=e.className,o=e.toJSON(),i=o.where,s=o.keys?o.keys.split(","):void 0,a={op:d,requestId:this.requestId,query:{className:r,where:i,fields:s}};t&&(a.sessionToken=t);var u=new l.default(this.requestId,e,t);return this.subscriptions.set(this.requestId,u),this.requestId+=1,this.connectPromise.then(function(){n.socket.send(JSON.stringify(a))}),u.on("error",function(){}),u}}},{key:"unsubscribe",value:function(e){var t=this;if(e){this.subscriptions.delete(e.id);var n={op:h,requestId:e.id};this.connectPromise.then(function(){t.socket.send(JSON.stringify(n))})}}},{key:"open",value:function(){var e=this,t=this._getWebSocketImplementation();t?(this.state!==f.RECONNECTING&&(this.state=f.CONNECTING),this.socket=new t(this.serverURL),this.socket.onopen=function(){e._handleWebSocketOpen()},this.socket.onmessage=function(t){e._handleWebSocketMessage(t)},this.socket.onclose=function(){e._handleWebSocketClose()},this.socket.onerror=function(t){e._handleWebSocketError(t)}):this.emit(g,"Can not find WebSocket implementation")}},{key:"resubscribe",value:function(){var e=this;this.subscriptions.forEach(function(t,n){var r=t.query,o=r.toJSON(),i=o.where,s=o.keys?o.keys.split(","):void 0,a=r.className,u=t.sessionToken,l={op:d,requestId:n,query:{className:a,where:i,fields:s}};u&&(l.sessionToken=u),e.connectPromise.then(function(){e.socket.send(JSON.stringify(l))})})}},{key:"close",value:function(){if(this.state!==f.INITIALIZED&&this.state!==f.DISCONNECTED){this.state=f.DISCONNECTED,this.socket.close();var e=!0,t=!1,n=void 0;try{for(var r,o=this.subscriptions.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.emit(O)}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}this._handleReset(),this.emit(m)}}},{key:"_getWebSocketImplementation",value:function(){return"function"==typeof WebSocket||"object"===("undefined"==typeof WebSocket?"undefined":o(WebSocket))?WebSocket:null}},{key:"_handleReset",value:function(){this.attempts=1,this.id=0,this.requestId=1,this.connectPromise=new a.default,this.subscriptions=new Map}},{key:"_handleWebSocketOpen",value:function(){this.attempts=1;var e={op:c,applicationId:this.applicationId,javascriptKey:this.javascriptKey,masterKey:this.masterKey,sessionToken:this.sessionToken,allowAnonymousKey:this.allowAnonymousKey};this.socket.send(JSON.stringify(e))}},{key:"_handleWebSocketMessage",value:function(e){var t=e.data;"string"==typeof t&&(t=JSON.parse(t));var n=null;switch(t.requestId&&(n=this.subscriptions.get(t.requestId)),t.op){case y:this.state===f.RECONNECTING&&this.resubscribe(),this.emit(b),this.id=t.clientId,this.connectPromise.resolve(),this.state=f.CONNECTED;break;case p:n&&n.emit(w);break;case _:t.requestId?n&&n.emit(S,t.error):this.emit(g,t.error);break;case v:break;default:var r=t.object.className;delete t.object.__type,delete t.object.className;var o=new u.default(r);if(o._finishFetch(t.object),!n)break;n.emit(t.op,o)}}},{key:"_handleWebSocketClose",value:function(){if(this.state!==f.DISCONNECTED){this.state=f.CLOSED,this.emit(m);var e=!0,t=!1,n=void 0;try{for(var r,o=this.subscriptions.values()[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){r.value.emit(O)}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}this._handleReconnect()}}},{key:"_handleWebSocketError",value:function(e){this.emit(g,e);var t=!0,n=!1,r=void 0;try{for(var o,i=this.subscriptions.values()[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.emit(S)}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}this._handleReconnect()}},{key:"_handleReconnect",value:function(){var e=this;if(this.state!==f.DISCONNECTED){this.state=f.RECONNECTING;var t=function(e){return Math.random()*Math.min(30,Math.pow(2,e)-1)*1e3}(this.attempts);this.reconnectHandle&&clearTimeout(this.reconnectHandle),this.reconnectHandle=setTimeout(function(){e.attempts++,e.connectPromise=new a.default,e.open()}.bind(this),t)}}}]),t}();t.default=k},function(e,t,n){"use strict";e.exports=n(27)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n(10)),i=r(n(6)),s=r(n(2)),a=r(n(36)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(8)),l=r(n(37)),f={initialize:function(e,t){s.default.get("IS_NODE")&&!Object({MMBS_BUILD:"browser"}).SERVER_RENDERING&&console.log("It looks like you're using the browser version of the SDK in a node.js environment. You should require('parse/node') instead."),f._initialize(e,t)},_initialize:function(e,t,n,r){s.default.set("APPLICATION_ID",e),s.default.set("JAVASCRIPT_KEY",t),s.default.set("MASTER_KEY",n),s.default.set("USE_MASTER_KEY",!1),s.default.set("ALLOW_ANONYMOUS_KEY",r)},setAsyncStorage:function(e){s.default.setAsyncStorage(e)}};Object.defineProperty(f,"applicationId",{get:function(){return s.default.get("APPLICATION_ID")},set:function(e){s.default.set("APPLICATION_ID",e)}}),Object.defineProperty(f,"javaScriptKey",{get:function(){return s.default.get("JAVASCRIPT_KEY")},set:function(e){s.default.set("JAVASCRIPT_KEY",e)}}),Object.defineProperty(f,"masterKey",{get:function(){return s.default.get("MASTER_KEY")},set:function(e){s.default.set("MASTER_KEY",e)}}),Object.defineProperty(f,"allowAnonymousKey",{get:function(){return s.default.get("ALLOW_ANONYMOUS_KEY")},set:function(e){s.default.set("ALLOW_ANONYMOUS_KEY",e)}}),Object.defineProperty(f,"useAllowAnonymousKey",{get:function(){return s.default.get("USE_ALLOW_ANONYMOUS_KEY")},set:function(e){s.default.set("USE_ALLOW_ANONYMOUS_KEY",e)}}),Object.defineProperty(f,"serverURL",{get:function(){return s.default.get("SERVER_URL")},set:function(e){s.default.set("SERVER_URL",e)}}),Object.defineProperty(f,"liveQueryServerURL",{get:function(){return s.default.get("LIVEQUERY_SERVER_URL")},set:function(e){s.default.set("LIVEQUERY_SERVER_URL",e)}}),f.ACL=n(7).default,f.Analytics=n(38),f.Cloud=n(39),f.CoreManager=n(2),f.Config=n(40).default,f.Error=n(3).default,f.File=n(4).default,f.GeoPoint=n(9).default,f.Polygon=n(13).default,f.Installation=n(41).default,f.Object=n(1).default,f.Op={Set:u.SetOp,Unset:u.UnsetOp,Increment:u.IncrementOp,Add:u.AddOp,Remove:u.RemoveOp,AddUnique:u.AddUniqueOp,Relation:u.RelationOp},f.Promise=n(0).default,f.Push=n(42),f.Query=n(11).default,f.Relation=n(5).default,f.Role=n(17).default,f.Schema=n(43).default,f.Session=n(24).default,f.Storage=n(12),f.User=n(15).default,f.LiveQuery=n(44).default,f.LiveQueryClient=n(25).default,f._request=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.getRESTController().request.apply(null,t)},f._ajax=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.default.getRESTController().ajax.apply(null,t)},f._decode=function(e,t){return(0,o.default)(t)},f._encode=function(e,t,n){return(0,i.default)(e,n)},f._getInstallationId=function(){return s.default.getInstallationController().currentInstallationId()},s.default.setInstallationController(a.default),s.default.setRESTController(l.default),f.Mmbs=f,e.exports=f},function(e,t){e.exports={name:"parse",version:"1.11.1",description:"The Mmbs JavaScript SDK",homepage:"https://www.cmetamap.com",keywords:["cloud","mobile","api"],license:"BSD-3-Clause",repository:{type:"git",url:"https://github.com/MmbsPlatform/Mmbs-SDK-JS"},bugs:"https://github.com/MmbsPlatform/Mmbs-SDK-JS/issues",files:["index.js","node.js","react-native.js","dist/","lib/","LICENSE","PATENTS","README.md"],browser:{"react-native":!1},dependencies:{"babel-runtime":"^6.11.6",ws:"^3.3.1",xmlhttprequest:"^1.7.0"},devDependencies:{babel:"^6.23.0","babel-cli":"^6.26.0","babel-core":"^6.26.0","babel-eslint":"^8.0.3","babel-jest":"^19.0.0","babel-loader":"^7.1.2","babel-plugin-flow-comments":"^6.3.19","babel-plugin-inline-package-json":"~2.0.0","babel-plugin-minify-dead-code-elimination":"0.1.4","babel-plugin-syntax-flow":"^6.18.0","babel-plugin-transform-flow-strip-types":"^6.22.0","babel-plugin-transform-inline-environment-variables":"^6.8.0","babel-plugin-transform-runtime":"^6.15.0","babel-preset-env":"^1.6.1","babel-preset-es2015":"^6.24.1","babel-preset-react":"^6.11.1","babel-preset-stage-2":"^6.13.0","babel-preset-stage-3":"^6.24.1","babel-register":"^6.26.0",browserify:"^14.3.0","codecov.io":"^0.1.6","cross-env":"^5.1.1",eslint:"^4.12.1","eslint-plugin-flowtype":"^2.39.1",gulp:"^3.9.1","gulp-babel":"^6.1.2","gulp-derequire":"^2.1.0","gulp-insert":"^0.5.0","gulp-rename":"^1.2.2","gulp-replace":"^0.5.4","gulp-uglify":"^2.1.2","jasmine-reporters":"~2.2.1","jest-cli":"^19.0.2",jsdoc:"^3.5.5","jsdoc-babel":"^0.3.0",minami:"^1.2.3","uglifyjs-webpack-plugin":"^1.1.2","vinyl-source-stream":"^1.1.0",webpack:"^3.10.0","webpack-node-externals":"^1.6.0"},scripts:{build:"./build_releases.sh",release:"./build_releases.sh && npm publish",test:"MMBS_BUILD=node jest",docs:"jsdoc -c ./jsdoc-conf.json ./src",release_docs:"./release_docs.sh"},jest:{automock:!0,collectCoverage:!0,roots:["src/"],testPathIgnorePatterns:["/node_modules/","/test_helpers/"],transform:{".*":"./babel-jest.js"},setupTestFrameworkScriptFile:"./setup-jest.js"}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if("object"!==(void 0===e?"undefined":i(e)))return!0;if(e instanceof u.default)return!0;if(e instanceof a.default)return!!e.id;if(e instanceof s.default)return!!e.url();if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(!o(e[t]))return!1;return!0}for(var n in e)if(!o(e[n]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){if(!(e instanceof a.default))return!0;var t=e.attributes;for(var n in t)if(!o(t[n]))return!1;return!0};var s=r(n(4)),a=r(n(1)),u=r(n(5))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if((void 0===e?"undefined":i(e))!==(void 0===t?"undefined":i(t)))return!1;if(!e||"object"!==(void 0===e?"undefined":i(e)))return e===t;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var n=e.length;n--;)if(!o(e[n],t[n]))return!1;return!0}if(e instanceof s.default||e instanceof a.default||e instanceof u.default||e instanceof l.default)return e.equals(t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!o(e[r],t[r]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=o;var s=r(n(7)),a=r(n(4)),u=r(n(9)),l=r(n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new RegExp("^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2})T([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(.([0-9]+))?Z$").exec(e);if(!t)return null;var n=t[1]||0,r=(t[2]||1)-1,o=t[3]||0,i=t[4]||0,s=t[5]||0,a=t[6]||0,u=t[8]||0;return new Date(Date.UTC(n,r,o,i,s,a,u))}},function(e,t,n){"use strict";function r(e){var t=u[e.className];return t?t[e.id]||null:null}function o(e,t){var n=r(e);return n||(u[e.className]||(u[e.className]={}),t||(t=a.defaultState()),n=u[e.className][e.id]=t)}function i(e){var t=r(e);return t?t.serverData:{}}function s(e){var t=r(e);return t?t.pendingOps:[{}]}Object.defineProperty(t,"__esModule",{value:!0}),t.getState=r,t.initializeState=o,t.removeState=function(e){var t=r(e);return null===t?null:(delete u[e.className][e.id],t)},t.getServerData=i,t.setServerData=function(e,t){var n=o(e).serverData;a.setServerData(n,t)},t.getPendingOps=s,t.setPendingOp=function(e,t,n){var r=o(e).pendingOps;a.setPendingOp(r,t,n)},t.pushPendingState=function(e){var t=o(e).pendingOps;a.pushPendingState(t)},t.popPendingState=function(e){var t=o(e).pendingOps;return a.popPendingState(t)},t.mergeFirstPendingState=function(e){var t=s(e);a.mergeFirstPendingState(t)},t.getObjectCache=function(e){var t=r(e);return t?t.objectCache:{}},t.estimateAttribute=function(e,t){var n=i(e),r=s(e);return a.estimateAttribute(n,r,e.className,e.id,t)},t.estimateAttributes=function(e){var t=i(e),n=s(e);return a.estimateAttributes(t,n,e.className,e.id)},t.commitServerChanges=function(e,t){var n=o(e);a.commitServerChanges(n.serverData,n.objectCache,t)},t.enqueueTask=function(e,t){return o(e).tasks.enqueue(t)},t.clearAllState=function(){u={}},t.duplicateState=function(e,t){t.id=e.id};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(21)),u={}},function(e,t,n){"use strict";function r(e){return l.get(e)||null}function o(e,t){var n=r(e);return n||(t||(t={serverData:{},pendingOps:[{}],objectCache:{},tasks:new u.default,existed:!1}),n=t,l.set(e,n),n)}function i(e){var t=r(e);return t?t.serverData:{}}function s(e){var t=r(e);return t?t.pendingOps:[{}]}Object.defineProperty(t,"__esModule",{value:!0}),t.getState=r,t.initializeState=o,t.removeState=function(e){var t=r(e);return null===t?null:(l.delete(e),t)},t.getServerData=i,t.setServerData=function(e,t){var n=o(e).serverData;a.setServerData(n,t)},t.getPendingOps=s,t.setPendingOp=function(e,t,n){var r=o(e).pendingOps;a.setPendingOp(r,t,n)},t.pushPendingState=function(e){var t=o(e).pendingOps;a.pushPendingState(t)},t.popPendingState=function(e){var t=o(e).pendingOps;return a.popPendingState(t)},t.mergeFirstPendingState=function(e){var t=s(e);a.mergeFirstPendingState(t)},t.getObjectCache=function(e){var t=r(e);return t?t.objectCache:{}},t.estimateAttribute=function(e,t){var n=i(e),r=s(e);return a.estimateAttribute(n,r,e.className,e.id,t)},t.estimateAttributes=function(e){var t=i(e),n=s(e);return a.estimateAttributes(t,n,e.className,e.id)},t.commitServerChanges=function(e,t){var n=o(e);a.commitServerChanges(n.serverData,n.objectCache,t)},t.enqueueTask=function(e,t){return o(e).tasks.enqueue(t)},t.duplicateState=function(e,t){var n=o(e),r=o(t);for(var i in n.serverData)r.serverData[i]=n.serverData[i];for(var s=0;s<n.pendingOps.length;s++)for(var a in n.pendingOps[s])r.pendingOps[s][a]=n.pendingOps[s][a];for(var u in n.objectCache)r.objectCache[u]=n.objectCache[u];r.existed=n.existed},t.clearAllState=function(){l=new WeakMap};var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(21)),u=function(e){return e&&e.__esModule?e:{default:e}}(n(22)),l=new WeakMap},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){if(e instanceof a.default){if(!e.id&&n)throw new Error("Cannot create a pointer to an unsaved Object.");var l=e.className+":"+e._getId();if(!t.objects[l]){t.objects[l]=!e.dirty()||e;var f=e.attributes;for(var c in f)"object"===i(f[c])&&o(f[c],t,!r,r)}}else if(e instanceof s.default)!e.url()&&t.files.indexOf(e)<0&&t.files.push(e);else if(!(e instanceof u.default)){Array.isArray(e)&&e.forEach(function(e){"object"===(void 0===e?"undefined":i(e))&&o(e,t,n,r)});for(var d in e)"object"===i(e[d])&&o(e[d],t,n,r)}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n={objects:{},files:[]},r=e.className+":"+e._getId();n.objects[r]=!e.dirty()||e;var s=e.attributes;for(var a in s)"object"===i(s[a])&&o(s[a],n,!1,!!t);var u=[];for(var l in n.objects)l!==r&&!0!==n.objects[l]&&u.push(n.objects[l]);return u.concat(n.files)};var s=r(n(4)),a=r(n(1)),u=r(n(5))},function(e,t,n){"use strict";!function(e){e&&e.__esModule}(n(0));var r={async:0,getItem:function(e){return localStorage.getItem(e)},setItem:function(e,t){try{localStorage.setItem(e,t)}catch(e){}},removeItem:function(e){localStorage.removeItem(e)},clear:function(){localStorage.clear()}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}r(n(2));var i=r(n(0)),s=r(n(12)),a=null,u={currentInstallationId:function(){if("string"==typeof a)return i.default.as(a);var e=s.default.generatePath("installationId");return s.default.getItemAsync(e).then(function(t){return t?(a=t,t):(t=o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o(),s.default.setItemAsync(e,t).then(function(){return a=t,t}))})},_clearCache:function(){a=null},_setInstallationIdCache:function(e){a=e}};e.exports=u},function(e,t,n){"use strict";(function(t){function r(e){return e&&e.__esModule?e:{default:e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(n(2)),s=r(n(3)),a=r(n(0)),u=(r(n(12)),null);"undefined"!=typeof XMLHttpRequest&&(u=XMLHttpRequest);var l=!1;"undefined"==typeof XDomainRequest||"withCredentials"in new XMLHttpRequest||(l=!0);var f={ajax:function(e,n,r,o){if(l)return function(e,t,n){var r=new a.default,o=new XDomainRequest;return o.onload=function(){var e;try{e=JSON.parse(o.responseText)}catch(e){r.reject(e)}e&&r.resolve(e)},o.onerror=o.ontimeout=function(){var e={responseText:JSON.stringify({code:s.default.X_DOMAIN_REQUEST,error:"IE's XDomainRequest does not supply error info."})};r.reject(e)},o.onprogress=function(){},o.open(e,t),o.send(n),r}(e,n,r);var f=new a.default,c=0;return function s(){if(null==u)throw new Error("Cannot make a request: No definition of XMLHttpRequest was found.");var a=!1,l=new u;l.onreadystatechange=function(){if(4===l.readyState&&!a)if(a=!0,l.status>=200&&l.status<300){var e;try{e=JSON.parse(l.responseText)}catch(e){f.reject(e.toString())}e&&f.resolve(e,l.status,l)}else if(l.status>=500||0===l.status)if(++c<i.default.get("REQUEST_ATTEMPT_LIMIT")){var t=Math.round(125*Math.random()*Math.pow(2,c));setTimeout(s,t)}else 0===l.status?f.reject("Unable to connect to the Mmbs API"):f.reject(l);else f.reject(l)},"string"!=typeof(o=o||{})["Content-Type"]&&(o["Content-Type"]="text/plain"),i.default.get("IS_NODE")&&(o["User-Agent"]="Mmbs/"+i.default.get("VERSION")+" (NodeJS "+t.versions.node+")"),l.open(e,n,!0);for(var d in o)l.setRequestHeader(d,o[d]);l.send(r)}(),f},request:function(e,t,n,r){r=r||{};var u=i.default.get("SERVER_URL");"/"!==u[u.length-1]&&(u+="/");var l="../graphql"==t;0===t.indexOf("../")?u=u.substr(0,u.indexOf("/",10))+t.substr(2):u+=t;var c={};if(n&&"object"===(void 0===n?"undefined":o(n)))for(var d in n)c[d]=n[d];"POST"!==e&&(c._method=e,e="POST"),c._ApplicationId=i.default.get("APPLICATION_ID");var h=i.default.get("JAVASCRIPT_KEY");h&&(c._JavaScriptKey=h),c._ClientVersion=i.default.get("VERSION");var y=r.useAllowAnonymousKey;if(void 0===y&&(y=i.default.get("USE_ALLOW_ANONYMOUS_KEY")),y){if(!i.default.get("ALLOW_ANONYMOUS_KEY"))throw new Error("Cannot use the AllowAnonymous Key, it has not been provided.");c._AllowAnonymousKey=i.default.get("ALLOW_ANONYMOUS_KEY")}var p=r.useMasterKey;if(void 0===p&&(p=i.default.get("USE_MASTER_KEY")),p){if(!i.default.get("MASTER_KEY"))throw new Error("Cannot use the Master Key, it has not been provided.");delete c._AllowAnonymousKey,delete c._JavaScriptKey,c._MasterKey=i.default.get("MASTER_KEY")}i.default.get("FORCE_REVOCABLE_SESSION")&&(c._RevocableSession="1");var v,_=r.installationId;if(_&&"string"==typeof _)v=a.default.as(_);else{v=i.default.getInstallationController().currentInstallationId()}return v.then(function(e){c._InstallationId=e;var t=i.default.getUserController();return r&&"string"==typeof r.sessionToken?a.default.as(r.sessionToken):t?t.currentUserAsync().then(function(e){return e?a.default.as(e.getSessionToken()):a.default.as(null)}):a.default.as(null)}).then(function(t){t&&(c._SessionToken=t);var n=JSON.stringify(c);if(l){var r={};r.query=c.query,r.variables=c.variables,r.operationName=c.operationName,n=JSON.stringify(r);var o={"Content-Type":"application/json"};return c._MasterKey?o["X-Mmbs-Master-Key"]=c._MasterKey:c._SessionToken?o["X-Mmbs-Session-Token"]=""+c._SessionToken:c._AllowAnonymousKey&&(o["X-Mmbs-AllowAnonymous-Key"]=c._AllowAnonymousKey),f.ajax(e,u,n,o)}return f.ajax(e,u,n)}).then(null,function(e){var t;if(e&&e.responseText)try{var n=JSON.parse(e.responseText);t=l?new Error(e.responseText):new s.default(n.code,n.error)}catch(n){t=new s.default(s.default.INVALID_JSON,"Received an error with invalid JSON from Mmbs: "+e.responseText)}else t=new s.default(s.default.CONNECTION_FAILED,"XMLHttpRequest failed: "+JSON.stringify(e));return a.default.error(t)})},_setXHR:function(e){u=e}};e.exports=f}).call(t,n(14))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.track=function(e,t,n){if(e=e||"",e=e.replace(/^\s*/,""),0===(e=e.replace(/\s*$/,"")).length)throw new TypeError("A name for the custom event must be provided");for(var o in t)if("string"!=typeof o||"string"!=typeof t[o])throw new TypeError('track() dimensions expects keys and values of type "string".');return n=n||{},r.default.getAnalyticsController().track(e,t)._thenRunCallbacks(n)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),o={track:function(e,t){var n="events/"+e;return r.default.getRESTController().request("POST",n,{dimensions:t})}};r.default.setAnalyticsController(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.run=function(e,t,n){if(n=n||{},"string"!=typeof e||0===e.length)throw new TypeError("Cloud function name must be a string.");var r={};return n.useMasterKey&&(r.useMasterKey=n.useMasterKey),n.useAllowAnonymousKey&&(r.useAllowAnonymousKey=n.useAllowAnonymousKey),n.sessionToken&&(r.sessionToken=n.sessionToken),o.default.getCloudController().run(e,t,r)._thenRunCallbacks(n)},t.getJobsData=function(e){return e=e||{},o.default.getCloudController().getJobsData({useMasterKey:!0})._thenRunCallbacks(e)},t.startJob=function(e,t,n){if(n=n||{},"string"!=typeof e||0===e.length)throw new TypeError("Cloud job name must be a string.");return o.default.getCloudController().startJob(e,t,{useMasterKey:!0})._thenRunCallbacks(n)},t.getJobStatus=function(e){return new l.default("_JobStatus").get(e,{useMasterKey:!0})},t.runJob=function(e,t,n){if(n=n||{},"string"!=typeof e||0===e.length)throw new TypeError("Cloud job name must be a string.");var r={};return n.useMasterKey&&(r.useMasterKey=n.useMasterKey),n.useAllowAnonymousKey&&(r.useAllowAnonymousKey=n.useAllowAnonymousKey),n.sessionToken&&(r.sessionToken=n.sessionToken),o.default.getCloudController().runJob(e,t,r)._thenRunCallbacks(n)},t.gql=function(e,t,n,r){if(r=r||{},"string"!=typeof e||0===e.length)throw new TypeError("qgl query name must be a string.");var i={};return r.useMasterKey&&(i.useMasterKey=r.useMasterKey),r.useAllowAnonymousKey&&(i.useAllowAnonymousKey=r.useAllowAnonymousKey),r.sessionToken&&(i.sessionToken=r.sessionToken),o.default.getCloudController().gql(e,t,n,i)._thenRunCallbacks(r)};var o=r(n(2)),i=r(n(10)),s=r(n(6)),a=r(n(3)),u=r(n(0)),l=r(n(11)),f={run:function(e,t,n){var r=o.default.getRESTController(),l=(0,s.default)(t,!0);return r.request("POST","functions/"+e,l,n).then(function(e){var t=(0,i.default)(e);return t&&t.hasOwnProperty("result")?u.default.as(t.result):u.default.error(new a.default(a.default.INVALID_JSON,"The server returned an invalid response."))})},gql:function(e,t,n,r){var i=o.default.getRESTController(),s={query:""+e};t&&(s.variables=t),n&&(s.operationName=n);return i.request("POST","../graphql",s,r).then(function(e){var t=e;return t&&t.hasOwnProperty("data")?u.default.as(t):u.default.error(new a.default(a.default.INVALID_JSON,"The server returned an invalid response."))})},getJobsData:function(e){return o.default.getRESTController().request("GET","cloud_code/jobs/data",null,e)},startJob:function(e,t,n){var r=o.default.getRESTController(),i=(0,s.default)(t,!0);return r.request("POST","jobs/"+e,i,n)},runJob:function(e,t,n){var r=o.default.getRESTController(),l=(0,s.default)(t,!0),f={};n.hasOwnProperty("useMasterKey")&&(f.useMasterKey=n.useMasterKey),n.hasOwnProperty("useAllowAnonymousKey")&&(f.useAllowAnonymousKey=n.useAllowAnonymousKey),n.hasOwnProperty("sessionToken")&&(f.sessionToken=n.sessionToken);return r.request("POST","jobs/"+e,l,f).then(function(e){var t=(0,i.default)(e);return t&&t.hasOwnProperty("result")?u.default.as(t.result):u.default.error(new a.default(a.default.INVALID_JSON,"The server returned an invalid response."))})._thenRunCallbacks(n)}};o.default.setCloudController(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){try{var t=JSON.parse(e);if(t&&"object"===(void 0===t?"undefined":i(t)))return(0,u.default)(t)}catch(e){return null}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(2)),u=r(n(10)),l=(r(n(6)),r(n(20))),f=r(n(3)),c=r(n(0)),d=r(n(12)),h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.attributes={},this._escapedAttributes={}}return s(e,[{key:"get",value:function(e){return this.attributes[e]}},{key:"escape",value:function(e){var t=this._escapedAttributes[e];if(t)return t;var n=this.attributes[e],r="";return null!=n&&(r=(0,l.default)(n.toString())),this._escapedAttributes[e]=r,r}}],[{key:"current",value:function(){return a.default.getConfigController().current()}},{key:"get",value:function(e){e=e||{};return a.default.getConfigController().get()._thenRunCallbacks(e)}}]),e}(),y=null,p={current:function(){if(y)return y;var e,t=new h,n=d.default.generatePath("currentConfig");if(!d.default.async()){if(e=d.default.getItem(n)){var r=o(e);r&&(t.attributes=r,y=t)}return t}return d.default.getItemAsync(n).then(function(e){if(e){var n=o(e);n&&(t.attributes=n,y=t)}return t})},get:function(){return a.default.getRESTController().request("GET","config",{},{}).then(function(e){if(!e||!e.params){var t=new f.default(f.default.INVALID_JSON,"Config JSON response invalid.");return c.default.error(t)}var n=new h;n.attributes={};for(var r in e.params)n.attributes[r]=(0,u.default)(e.params[r]);return y=n,d.default.setItemAsync(d.default.generatePath("currentConfig"),JSON.stringify(e.params)).then(function(){return n})})}};a.default.setConfigController(p),t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),i=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"_Installation"));if(e&&"object"===(void 0===e?"undefined":r(e))&&!n.set(e||{}))throw new Error("Can't create an invalid Session");return n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();t.default=i,o.default.registerSubclass("_Installation",i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.send=function(e,t){if(t=t||{},e.where&&e.where instanceof s.default&&(e.where=e.where.toJSON().where),e.push_time&&"object"===o(e.push_time)&&(e.push_time=e.push_time.toJSON()),e.expiration_time&&"object"===o(e.expiration_time)&&(e.expiration_time=e.expiration_time.toJSON()),e.expiration_time&&e.expiration_interval)throw new Error("expiration_time and expiration_interval cannot both be set.");return i.default.getPushController().send(e,{useMasterKey:t.useMasterKey})._thenRunCallbacks(t)};var i=r(n(2)),s=r(n(11)),a={send:function(e,t){return i.default.getRESTController().request("POST","push",e,{useMasterKey:!!t.useMasterKey})._thenRunCallbacks(t)}};i.default.setPushController(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(n(2)),s=(r(n(0)),["String","Number","Boolean","Date","File","GeoPoint","Polygon","Array","Object","Pointer","Relation"]),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"string"==typeof t&&("User"===t&&i.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t),this._fields={},this._indexes={},this._classLevelPermissions={}}return o(e,[{key:"get",value:function(e){var t=this;this.assertClassName(),e=e||{};return i.default.getSchemaController().get(this.className,e).then(function(e){if(!e)throw new Error("Schema not found.");return t._classLevelPermissions=e.classLevelPermissions,e})._thenRunCallbacks(e)}},{key:"save",value:function(e){this.assertClassName(),e=e||{};var t=i.default.getSchemaController(),n={className:this.className,fields:this._fields,indexes:this._indexes,classLevelPermissions:this._classLevelPermissions};return t.create(this.className,n,e).then(function(e){return e})._thenRunCallbacks(e)}},{key:"update",value:function(e){this.assertClassName(),e=e||{};var t=i.default.getSchemaController(),n={className:this.className,fields:this._fields,indexes:this._indexes,classLevelPermissions:this._classLevelPermissions};return this._fields={},this._indexes={},this._classLevelPermissions={},t.update(this.className,n,e).then(function(e){return e})._thenRunCallbacks(e)}},{key:"delete",value:function(e){this.assertClassName(),e=e||{};return i.default.getSchemaController().delete(this.className,e).then(function(e){return e})._thenRunCallbacks(e)}},{key:"purge",value:function(e){this.assertClassName();return i.default.getSchemaController().purge(this.className).then(function(e){return e})._thenRunCallbacks(e)}},{key:"assertClassName",value:function(){if(!this.className)throw new Error("You must set a Class Name before making any request.")}},{key:"addField",value:function(e,t){if(t=t||"String",!e)throw new Error("field name may not be null.");if(-1===s.indexOf(t))throw new Error(t+" is not a valid type.");return this._fields[e]={type:t},this}},{key:"addIndex",value:function(e,t){if(!e)throw new Error("index name may not be null.");if(!t)throw new Error("index may not be null.");return this._indexes[e]=t,this}},{key:"addString",value:function(e){return this.addField(e,"String")}},{key:"addNumber",value:function(e){return this.addField(e,"Number")}},{key:"addBoolean",value:function(e){return this.addField(e,"Boolean")}},{key:"addDate",value:function(e){return this.addField(e,"Date")}},{key:"addFile",value:function(e){return this.addField(e,"File")}},{key:"addGeoPoint",value:function(e){return this.addField(e,"GeoPoint")}},{key:"addPolygon",value:function(e){return this.addField(e,"Polygon")}},{key:"addArray",value:function(e){return this.addField(e,"Array")}},{key:"addObject",value:function(e){return this.addField(e,"Object")}},{key:"addPointer",value:function(e,t){if(!e)throw new Error("field name may not be null.");if(!t)throw new Error("You need to set the targetClass of the Pointer.");return this._fields[e]={type:"Pointer",targetClass:t},this}},{key:"addRelation",value:function(e,t){if(!e)throw new Error("field name may not be null.");if(!t)throw new Error("You need to set the targetClass of the Relation.");return this._fields[e]={type:"Relation",targetClass:t},this}},{key:"deleteField",value:function(e){this._fields[e]={__op:"Delete"}}},{key:"deleteIndex",value:function(e){this._indexes[e]={__op:"Delete"}}},{key:"updateClassLevelPermissions",value:function(e,t,n){if(["read","write","find","get","create","update","delete","addField"].indexOf(e)<0)throw new Error("method name may not find.use [find, get, create, update, delete, addField]");if(!t)throw new Error("You need to set the Role name.");this._classLevelPermissions=this._classLevelPermissions||{},"read"==e?(this._classLevelPermissions.find=this._classLevelPermissions.find||{},this._classLevelPermissions.get=this._classLevelPermissions.get||{}):"write"==e?(this._classLevelPermissions.create=this._classLevelPermissions.create||{},this._classLevelPermissions.update=this._classLevelPermissions.update||{},this._classLevelPermissions.delete=this._classLevelPermissions.delete||{},this._classLevelPermissions.addField=this._classLevelPermissions.addField||{}):this._classLevelPermissions[e]=this._classLevelPermissions[e]||{};var r=("*"===t?"":"role:")+t;return n?"read"==e?(this._classLevelPermissions.find[r]=!0,this._classLevelPermissions.get[r]=!0):"write"==e?(this._classLevelPermissions.create[r]=!0,this._classLevelPermissions.update[r]=!0,this._classLevelPermissions.delete[r]=!0,this._classLevelPermissions.addField[r]=!0):this._classLevelPermissions[e][r]=!0:"read"==e?(delete this._classLevelPermissions.find[r],delete this._classLevelPermissions.get[r]):"write"==e?(delete this._classLevelPermissions.create[r],delete this._classLevelPermissions.update[r],delete this._classLevelPermissions.delete[r],delete this._classLevelPermissions.addField[r]):delete this._classLevelPermissions[e][r],this}},{key:"getClassLevelPermissions",value:function(){return this._classLevelPermissions}}],[{key:"all",value:function(e){e=e||{};return i.default.getSchemaController().get("",e).then(function(e){if(0===e.results.length)throw new Error("Schema not found.");return e.results})._thenRunCallbacks(e)}}]),e}(),u={send:function(e,t,n,r){var o=i.default.getRESTController(),s={useMasterKey:!0};return r.hasOwnProperty("sessionToken")&&(s.sessionToken=r.sessionToken),o.request(t,"schemas/"+e,n,s)},get:function(e,t){return this.send(e,"GET",{},t)},create:function(e,t,n){return this.send(e,"POST",t,n)},update:function(e,t,n){return this.send(e,"PUT",t,n)},delete:function(e,t){return this.send(e,"DELETE",{},t)},purge:function(e){return i.default.getRESTController().request("DELETE","purge/"+e,{},{useMasterKey:!0})}};i.default.setSchemaController(u),t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return u.default.getUserController().currentUserAsync().then(function(e){return e?e.getSessionToken():void 0})}function i(){return u.default.getLiveQueryController().getDefaultLiveQueryClient()}Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(16)),a=r(n(25)),u=r(n(2)),l=r(n(0)),f=new s.default;f.open=function(){u.default.getLiveQueryController().open()},f.close=function(){u.default.getLiveQueryController().close()},f.on("error",function(){}),t.default=f;var c=void 0,d={setDefaultLiveQueryClient:function(e){c=e},getDefaultLiveQueryClient:function(){return c?l.default.as(c):o().then(function(e){var t=u.default.get("LIVEQUERY_SERVER_URL");if(t&&0!==t.indexOf("ws"))throw new Error("You need to set a proper Mmbs LiveQuery server url before using LiveQueryClient");if(!t){var n=u.default.get("SERVER_URL"),r="ws://";0===n.indexOf("https")&&(r="wss://");t=r+n.replace(/^https?:\/\//,""),u.default.set("LIVEQUERY_SERVER_URL",t)}var o=u.default.get("APPLICATION_ID"),i=u.default.get("JAVASCRIPT_KEY"),s=u.default.get("MASTER_KEY"),l=u.default.get("ALLOW_ANONYMOUS_KEY");return(c=new a.default({applicationId:o,serverURL:t,javascriptKey:i,masterKey:s,sessionToken:e,allowAnonymousKey:l})).on("error",function(e){f.emit("error",e)}),c.on("open",function(){f.emit("open")}),c.on("close",function(){f.emit("close")}),c})},open:function(){var e=this;i().then(function(t){e.resolve(t.open())})},close:function(){var e=this;i().then(function(t){e.resolve(t.close())})},subscribe:function(e){var t=this,n=new s.default;return i().then(function(r){r.shouldOpen()&&r.open();return o().then(function(o){var i=r.subscribe(e,o);n.id=i.id,n.query=i.query,n.sessionToken=i.sessionToken,n.unsubscribe=i.unsubscribe,i.on("open",function(){n.emit("open")}),i.on("create",function(e){n.emit("create",e)}),i.on("update",function(e){n.emit("update",e)}),i.on("enter",function(e){n.emit("enter",e)}),i.on("leave",function(e){n.emit("leave",e)}),i.on("delete",function(e){n.emit("delete",e)}),i.on("close",function(e){n.emit("close",e)}),i.on("error",function(e){n.emit("error",e)}),t.resolve()})}),n},unsubscribe:function(e){var t=this;i().then(function(n){t.resolve(n.unsubscribe(e))})},_clearCachedDefaultClient:function(){c=null}};u.default.setLiveQueryController(d)},function(e,t,n){"use strict";function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=c(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}function o(e){return void 0===e._maxListeners?r.defaultMaxListeners:e._maxListeners}function i(e,t,n,r){var i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),a=s[t]):(s=e._events=c(null),e._eventsCount=0),a){if("function"==typeof a?a=s[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(i=o(e))&&i>0&&a.length>i){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,"object"===("undefined"==typeof console?"undefined":f(console))&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=s[t]=n,++e._eventsCount;return e}function s(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function a(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.call(s,r);return o.listener=n,r.wrapFn=o,o}function u(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function l(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.create||function(e){var t=function(){};return t.prototype=e,new t},d=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},h=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0;var y,p=10;try{var v={};Object.defineProperty&&Object.defineProperty(v,"x",{value:0}),y=0===v.x}catch(e){y=!1}y?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');p=e}}):r.defaultMaxListeners=p,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return o(this)},r.prototype.emit=function(e){var t,n,r,o,i,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(n=s[e]))return!1;var f="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,o=l(e,r),i=0;i<r;++i)o[i].call(n)}(n,f,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=l(e,o),s=0;s<o;++s)i[s].call(n,r)}(n,f,this,arguments[1]);break;case 3:!function(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,s=l(e,i),a=0;a<i;++a)s[a].call(n,r,o)}(n,f,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var s=e.length,a=l(e,s),u=0;u<s;++u)a[u].call(n,r,o,i)}(n,f,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];!function(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=l(e,o),s=0;s<o;++s)i[s].apply(n,r)}(n,f,this,o)}return!0},r.prototype.addListener=function(e,t){return i(this,e,t,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(e,t){return i(this,e,t,!0)},r.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,a(this,e,t)),this},r.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,a(this,e,t)),this},r.prototype.removeListener=function(e,t){var n,r,o,i,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=c(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),r.removeListener&&this.emit("removeListener",e,s||t)}return this},r.prototype.removeAllListeners=function(e){var t,n,r;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=c(null),this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=c(null):delete n[e]),this;if(0===arguments.length){var o,i=d(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=c(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},r.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},r.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):u.call(e,t)},r.prototype.listenerCount=u,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=r(n(16)),s=r(n(2)),a=function(e){function t(e,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.id=e,o.query=n,o.sessionToken=r,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default),o(t,[{key:"unsubscribe",value:function(){var e=this,t=this;s.default.getLiveQueryController().getDefaultLiveQueryClient().then(function(n){n.unsubscribe(t),t.emit("close"),e.resolve()})}}]),t}();t.default=a}])})}])});

/***/ }),

/***/ "EipT":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ "IcnI":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (immutable) */ __webpack_exports__["e"] = SetStore;
/* harmony export (immutable) */ __webpack_exports__["c"] = GetStore;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return Store; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BUS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return EVENTS; });
/* unused harmony export IsRole */
/* harmony export (immutable) */ __webpack_exports__["d"] = JudgeRole;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__("PVEY");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_good_storage__ = __webpack_require__("IKiI");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config__ = __webpack_require__("2uFj");




var store = {};

function SetStore(name, value) {
  store[name] = value;
  __WEBPACK_IMPORTED_MODULE_1_good_storage__["a" /* default */].set(__WEBPACK_IMPORTED_MODULE_2__config__["b" /* BASEINFO */], store);
}

function GetStore(name) {
  store = __WEBPACK_IMPORTED_MODULE_1_good_storage__["a" /* default */].get(__WEBPACK_IMPORTED_MODULE_2__config__["b" /* BASEINFO */]) || {};
  return store[name];
}

var Store = {
  dictionary: 'dictionary',
  user: 'user',
  roles: 'roles',
  enterprise: 'enterprise',
  organization: 'organization'
};

var BUS = new __WEBPACK_IMPORTED_MODULE_0_vue__["a" /* default */]({});

var EVENTS = {
  lawDisposalHidden: 'lawDisposalHidden',
  lawDisposalContent: 'lawDisposalContent',
  lawDetainHidden: 'lawDetainHidden',
  lawDetainContent: 'lawDetainContent',
  lawDetainList: 'lawDetainList',
  lawProgrammeContent: 'lawProgrammeContent',
  lawRecordContent: 'lawRecordContent',
  emergencyCommandActionAdd: 'emergencyCommandActionAdd',
  messageMettingPersonList: 'messageMettingPersonList'
};

function IsRole(role) {
  var roles = GetStore(Store.roles);
  var obj = roles.find(function (v) {
    return v.name === role;
  });
  return !!obj;
}

function JudgeRole() {
  var fn = function fn(context, role, callback) {
    if (IsRole(role)) {
      context.judgeSuccess = true;
      context.judgeResult = typeof callback === 'function' ? callback() : callback;
    }
    return context;
  };
  return {
    judgeSuccess: false,
    judgeResult: null,
    administrator: function administrator(callback) {
      var role = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'administrator';

      return fn(this, role, callback);
    },
    government: function government(callback) {
      var role = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'government';

      return fn(this, role, callback);
    },
    enterprise: function enterprise(callback) {
      var role = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'enterprise';

      return fn(this, role, callback);
    },
    assisstant: function assisstant(callback) {
      var role = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'assisstDept';

      return fn(this, role, callback);
    },
    fail: function fail(callback) {
      if (!this.judgeSuccess) {
        callback();
      }
      return this;
    },
    default: function _default(val) {
      return this.judgeSuccess ? this.judgeResult : val;
    }
  };
}

/* harmony default export */ __webpack_exports__["g"] = ({
  install: function install(Vue) {
    Vue.prototype.$setStore = SetStore;
    Vue.prototype.$getStore = GetStore;
  }
});

/***/ }),

/***/ "KWL1":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "NHnr":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });

// EXTERNAL MODULE: ./node_modules/_vue@2.6.6@vue/dist/vue.esm.js
var vue_esm = __webpack_require__("PVEY");

// EXTERNAL MODULE: ./src/router/index.js + 16 modules
var router = __webpack_require__("YaEn");

// EXTERNAL MODULE: ./src/store/index.js
var store = __webpack_require__("IcnI");

// EXTERNAL MODULE: ./static/js/mmbs.js
var mmbs = __webpack_require__("67dv");
var mmbs_default = /*#__PURE__*/__webpack_require__.n(mmbs);

// EXTERNAL MODULE: ./node_modules/_echarts@3.8.5@echarts/index.js
var _echarts_3_8_5_echarts = __webpack_require__("7VF+");
var _echarts_3_8_5_echarts_default = /*#__PURE__*/__webpack_require__.n(_echarts_3_8_5_echarts);

// EXTERNAL MODULE: ./src/common/plugin/index.js + 207 modules
var common_plugin = __webpack_require__("Tvds");

// EXTERNAL MODULE: ./src/common/plugin/style/theme/LightBlue.css
var LightBlue = __webpack_require__("izgY");
var LightBlue_default = /*#__PURE__*/__webpack_require__.n(LightBlue);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/defineProperty.js
var defineProperty = __webpack_require__("a3Yh");
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./src/common/api/commonApi.js
var commonApi = __webpack_require__("+/+p");

// EXTERNAL MODULE: ./node_modules/_lodash@4.17.11@lodash/lodash.js
var lodash = __webpack_require__("psq8");
var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/components/mmbsWork/workList.vue



//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var workList = ({
  name: 'mmbsList',
  props: {
    options: {
      type: Object,
      default: function _default() {
        return {
          global: {
            title: '列表展示', // 页面标题
            collectionName: '', // 表名称
            param: null, // 全局查询参数
            searchApi: null // 查询函数
          },
          list: {
            layout: 'card', // 列表布局
            serial: {
              field: '' // 卡片标题显示字段，作为card使用
            }
          },
          search: {
            layout: '', // 搜索布局
            serial: {
              field: [] // 搜索字段
            }
          },
          columns: [] // 表字段
        };
      }
    }
  },
  data: function data() {
    var _this = this;

    return {
      input: false,
      inputValue: '',
      rightData: [{
        font: 'yt-icon yt-icon-search',
        click: function click() {
          _this.input = !_this.input;
        }
      }],
      currentParam: {},
      searchApi: function () {
        var _ref = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(_ref2) {
          var skip = _ref2.skip,
              limit = _ref2.limit;
          var options, items;
          return regenerator_default.a.wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  options = lodash_default.a.merge({ skip: skip, limit: limit }, _this.currentParam);
                  _context.next = 3;
                  return commonApi["a" /* commonApi */].search(_this.options.global.collectionName, options);

                case 3:
                  items = _context.sent;
                  return _context.abrupt('return', items);

                case 5:
                case 'end':
                  return _context.stop();
              }
            }
          }, _callee, _this);
        }));

        return function searchApi(_x) {
          return _ref.apply(this, arguments);
        };
      }()
    };
  },

  methods: {
    isHide: function isHide(column) {
      return column.hide ? column.hide.every(function (action) {
        return action === 'card';
      }) : false;
    },
    refresh: function refresh() {
      var search = this.options.search;
      if (search.layout === 'inline') {
        this.currentParam = {
          contains: defineProperty_default()({}, search.serial.field[0], this.inputValue)
        };
      }
      this.$refs.group.startPull();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-173fc146","hasScoped":true,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/components/mmbsWork/workList.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-page',{attrs:{"title":_vm.options.global.title,"rightData":_vm.options.search ? _vm.rightData : [],"input":_vm.input},on:{"change":_vm.refresh},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}},[_c('yt-group',{ref:"group",attrs:{"group":false,"searchApi":_vm.options.global.searchApi || _vm.searchApi},scopedSlots:_vm._u([{key:"default",fn:function(item){return _c('yt-card',{attrs:{"btn":"查看详情","edge":false,"tag":false,"title":item[_vm.options.list.serial.field]},on:{"btn-click":function($event){return _vm.goDetailPage(item.id)}}},_vm._l((_vm.options.columns),function(column,index){return (!_vm.isHide(column))?_c('yt-cell',{key:index,attrs:{"border":"false","label":column.label,"value":item[column.field]}}):_vm._e()}),1)}}])})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var mmbsWork_workList = (esExports);
// CONCATENATED MODULE: ./src/common/components/mmbsWork/workList.vue
function injectStyle (ssrContext) {
  __webpack_require__("wF9o")
}
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-173fc146"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  workList,
  mmbsWork_workList,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var components_mmbsWork_workList = (Component.exports);

// EXTERNAL MODULE: ./node_modules/_babel-types@6.26.0@babel-types/lib/index.js
var lib = __webpack_require__("/cAD");
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/components/mmbsWork/workDetail.vue




/* harmony default export */ var workDetail = ({
  name: 'mmbsDetail',
  render: function render(h) {
    return h(
      'yt-page',
      {
        attrs: { title: '\u8BE6\u60C5\u9875', scroll: true }
      },
      [this.renderCell(h)]
    );
  },

  props: {
    item: {},
    columns: [{
      label: '',
      field: '',
      hide: [],
      base: 'cell', // 
      belongTo: '' //
    }]
  },
  methods: {
    renderCell: function renderCell(h) {
      var _this = this;

      var columnsObj = lodash_default.a.groupBy(this.columns, 'belongTo');
      var cards = [];

      lodash_default.a.forIn(columnsObj, function (card, key) {
        var cells = card.map(function (cell) {

          if (cell.hide && cell.hide.indexOf('detail') !== -1) return;
          if (cell.base === 'cell') {
            return h('yt-cell', {
              attrs: { label: cell.label, value: _this.item[cell.field] }
            });
          }
          if (cell.base === 'textarea') {
            // todo 如何实现 v-model 绑定？
            return h('yt-textarea', {
              domProps: {
                value: self.value
              },
              on: {}
            });
            // return <yt-textarea disabled title={cell.label} v-model={this.item[cell.field]}></yt-textarea>
          }
        });

        cards.push(h(
          'yt-card',
          {
            attrs: { title: key }
          },
          [cells]
        ));
      });
      return cards;
    }
  }
});
// CONCATENATED MODULE: ./src/common/components/mmbsWork/workDetail.vue
var workDetail_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */
var __vue_template__ = null
/* template functional */
var workDetail___vue_template_functional__ = false
/* styles */
var workDetail___vue_styles__ = null
/* scopeId */
var workDetail___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var workDetail___vue_module_identifier__ = null
var workDetail_Component = workDetail_normalizeComponent(
  workDetail,
  __vue_template__,
  workDetail___vue_template_functional__,
  workDetail___vue_styles__,
  workDetail___vue_scopeId__,
  workDetail___vue_module_identifier__
)

/* harmony default export */ var mmbsWork_workDetail = (workDetail_Component.exports);

// CONCATENATED MODULE: ./src/common/components/index.js



var components = [components_mmbsWork_workList, mmbsWork_workDetail];

/* harmony default export */ var common_components = ({
  install: function install(Vue) {
    components.forEach(function (item) {
      return Vue.component(item.name, item);
    });
  }
});
// EXTERNAL MODULE: ./src/config/index.js
var config = __webpack_require__("2uFj");

// EXTERNAL MODULE: ./src/common/plugin/utils/bridge.js
var bridge = __webpack_require__("4Bcj");

// EXTERNAL MODULE: ./src/common/utils/index.js
var utils = __webpack_require__("dh3M");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/App.vue
//
//
//
//
//
//
//
//







/* harmony default export */ var App = ({
  name: 'App',
  data: function data() {
    return {
      transitionName: 'yt-slider-left'
    };
  },
  created: function created() {
    var _this = this;

    commonApi["a" /* commonApi */].searchFirst('sys_apkManage', { descending: 'updatedAt' }).then(function (res) {
      // 服务器上最新版本与当前app版本做比较
      var canUpdate = Object(utils["b" /* CanUpdate */])(config["h" /* Version */], res.version);
      if (canUpdate) {
        _this.$Confirm({
          confirmText: '立即下载',
          cancelText: '容我想想',
          title: '发现新版本',
          desc: res.describe
        }).then(function () {
          _this.$Toast('已在后台下载，稍后更新！', 'success');
          bridge["a" /* bridge */].DownloadApk(res.file[0].name, res.file[0].url, function (res) {
            console.log(res);
          });
        });
      }
    });

    common_plugin["c" /* bus */].$on('onBack', function () {
      _this.$router.$back();
    });
  },
  destroyed: function destroyed() {
    common_plugin["c" /* bus */].$off('onBack');
    common_plugin["c" /* bus */].$off('onResume');
  },

  watch: {
    $route: function $route(to, from) {
      if (to.meta.name) {
        this.transitionName = to.meta.name;
      } else {
        this.transitionName = this.$router.$isBack ? 'yt-slider-left' : 'yt-slider-right';
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-28aaa0d6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/App.vue
var App_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":_vm.transitionName}},[_c('keep-alive',[_c('router-view',{staticClass:"page-has-transition"})],1)],1)}
var App_staticRenderFns = []
var App_esExports = { render: App_render, staticRenderFns: App_staticRenderFns }
/* harmony default export */ var selectortype_template_index_0_src_App = (App_esExports);
// CONCATENATED MODULE: ./src/App.vue
function App_injectStyle (ssrContext) {
  __webpack_require__("EipT")
}
var App_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var App___vue_template_functional__ = false
/* styles */
var App___vue_styles__ = App_injectStyle
/* scopeId */
var App___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var App___vue_module_identifier__ = null
var App_Component = App_normalizeComponent(
  App,
  selectortype_template_index_0_src_App,
  App___vue_template_functional__,
  App___vue_styles__,
  App___vue_scopeId__,
  App___vue_module_identifier__
)

/* harmony default export */ var src_App = (App_Component.exports);

// CONCATENATED MODULE: ./src/main.js











vue_esm["a" /* default */].prototype.$echarts = _echarts_3_8_5_echarts_default.a;
vue_esm["a" /* default */].use(store["g" /* default */]);
vue_esm["a" /* default */].use(common_plugin["d" /* default */]);
vue_esm["a" /* default */].use(common_components);
vue_esm["a" /* default */].config.productionTip = false;
document.title = config["g" /* SystemName */];

mmbs_default.a.initialize(config["a" /* AppId */]);
mmbs_default.a.allowAnonymousKey = config["f" /* ServerName */] + 'AllowAnonymousKey'; // 在需要开放权限的页面，Mmbs.useAllowAnonymousKey = true 即可（开启或关闭，灵活应用）
mmbs_default.a.useAllowAnonymousKey = true;
mmbs_default.a.serverURL = Object(store["c" /* GetStore */])(config["e" /* IP */]) || config["c" /* BaseUrl */].public;

/* eslint-disable no-new */
new vue_esm["a" /* default */]({
  el: '#app',
  router: router["a" /* default */],
  template: '<App/>',
  components: { App: src_App }
});

/***/ }),

/***/ "QDyu":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "Tvds":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var service_namespaceObject = {};
__webpack_require__.d(service_namespaceObject, "Toast", function() { return $toast["a" /* Toast */]; });
__webpack_require__.d(service_namespaceObject, "Confirm", function() { return Confirm; });
__webpack_require__.d(service_namespaceObject, "ActionSheet", function() { return ActionSheet; });
__webpack_require__.d(service_namespaceObject, "Select", function() { return Select; });
__webpack_require__.d(service_namespaceObject, "PreviewImg", function() { return PreviewImg; });
__webpack_require__.d(service_namespaceObject, "Cascader", function() { return Cascader; });
__webpack_require__.d(service_namespaceObject, "Picker", function() { return Picker; });
__webpack_require__.d(service_namespaceObject, "Loading", function() { return Loading; });

// EXTERNAL MODULE: ./node_modules/_vue-router@3.0.2@vue-router/dist/vue-router.esm.js
var vue_router_esm = __webpack_require__("KGCO");

// CONCATENATED MODULE: ./src/common/plugin/router.js
/**
 * Created by mas on 2018/3/17.
 */


/* harmony default export */ var router = ({
  install: function install(Vue) {
    vue_router_esm["a" /* default */].prototype.$isBack = false;
    vue_router_esm["a" /* default */].prototype.$back = function () {
      var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;

      this.$isBack = true;
      this.go(index);
    };
    vue_router_esm["a" /* default */].prototype.$push = function (options) {
      this.$isBack = false;
      this.push(options);
    };
  }
});
// EXTERNAL MODULE: ./src/common/plugin/utils/index.js + 26 modules
var utils = __webpack_require__("5/dX");

// CONCATENATED MODULE: ./src/common/plugin/filters.js
/**
 * Created by mas on 2017/9/18.
 */


var directives = {
  array2String: utils["b" /* array2String */],
  formatTime: utils["j" /* formatTime */],
  friendlyFileSize: utils["k" /* friendlyFileSize */],
  friendlyTime: utils["l" /* friendlyTime */],
  securityGetVal: utils["u" /* securityGetVal */],
  parseTimeToString: utils["s" /* parseTimeToString */],
  calendarTime: utils["e" /* calendarTime */]
};

/* harmony default export */ var filters = ({
  install: function install(Vue) {
    for (var key in directives) {
      Vue.filter(key, directives[key]);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/view/ripple.vue
//
//
//
//
//
//



/* harmony default export */ var ripple = ({
  name: 'yt-ripple',
  props: {
    mergeStyle: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    color: {
      type: String,
      default: ''
    },
    opacity: {
      type: Number
    }
  },
  computed: {
    styles: function styles() {
      return Object(utils["r" /* merge */])({}, { color: this.color, opacity: this.opacity }, this.mergeStyle);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0fe315f8","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/view/ripple.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"yt-ripple-fade"}},[_c('div',{staticClass:"yt-ripple",style:(_vm.styles)})])}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var view_ripple = (esExports);
// CONCATENATED MODULE: ./src/common/plugin/view/ripple.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  ripple,
  view_ripple,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var plugin_view_ripple = (Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/view/index.vue
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var view = ({
  name: 'yt-view',
  props: {
    /**
     * 圆型
     */
    centerRipple: {
      type: Boolean
    },
    /**
     * 颜色
     */
    color: {
      type: String
    },
    /**
     * 透明度
     */
    opacity: {
      type: Number
    },
    /**
     * 是否显示波纹
     */
    ripple: {
      type: Boolean,
      default: true
    }
  },
  data: function data() {
    return {
      nextKey: 0,
      ripples: []
    };
  },
  mounted: function mounted() {
    this.ignoreNextMouseDown = false;
  },

  methods: {
    start: function start(event, isRippleTouchGenerated) {
      if (this.ignoreNextMouseDown && !isRippleTouchGenerated) {
        this.ignoreNextMouseDown = false;
        return;
      }
      this.ripples.push({
        key: this.nextKey++,
        color: this.color,
        opacity: this.opacity,
        style: this.centerRipple ? {} : this.getRippleStyle(event)
      });
      this.ignoreNextMouseDown = isRippleTouchGenerated;
    },
    end: function end() {
      if (!this.ripples || this.ripples.length === 0) return;
      this.ripples.splice(0, 1);
      this.stopListeningForScrollAbort();
    },
    stopListeningForScrollAbort: function stopListeningForScrollAbort() {
      if (!this.handleMove) this.handleMove = this.handleTouchMove.bind(this);
      document.body.removeEventListener('touchmove', this.handleMove, false);
    },
    startListeningForScrollAbort: function startListeningForScrollAbort(event) {
      this.firstTouchY = event.touches[0].clientY;
      this.firstTouchX = event.touches[0].clientX;
      document.body.addEventListener('touchmove', this.handleMove, false);
    },
    handleMouseDown: function handleMouseDown(event) {
      if (event.button === 0) {
        this.start(event, false);
      }
    },
    handleTouchStart: function handleTouchStart(event) {
      if (event && event.touches) {
        this.startListeningForScrollAbort(event);
        this.startTime = Date.now();
      }
      this.start(event.touches[0], true);
    },
    handleTouchMove: function handleTouchMove(event) {
      var deltaY = Math.abs(event.touches[0].clientY - this.firstTouchY);
      var deltaX = Math.abs(event.touches[0].clientX - this.firstTouchX);
      // 判断滚动 6px
      if (deltaY > 6 || deltaX > 6) this.end();
      // const timeSinceStart = Math.abs(Date.now() - this.startTime)
      // if (timeSinceStart > 300) {
      //   this.stopListeningForScrollAbort()
      //   return
      // }
    },
    handlerClick: function handlerClick(e) {
      this.$emit('click', e);
    },
    getRippleStyle: function getRippleStyle(event) {
      var el = this.$refs.holder;
      var elHeight = el.offsetHeight;
      var elWidth = el.offsetWidth;
      var offset = Object(utils["m" /* getOffset */])(el);
      var isTouchEvent = event.touches && event.touches.length;
      var pageX = isTouchEvent ? event.touches[0].pageX : event.pageX;
      var pageY = isTouchEvent ? event.touches[0].pageY : event.pageY;
      var pointerX = pageX - offset.left;
      var pointerY = pageY - offset.top;
      var topLeftDiag = this.calcDiag(pointerX, pointerY);
      var topRightDiag = this.calcDiag(elWidth - pointerX, pointerY);
      var botRightDiag = this.calcDiag(elWidth - pointerX, elHeight - pointerY);
      var botLeftDiag = this.calcDiag(pointerX, elHeight - pointerY);
      var rippleRadius = Math.max(topLeftDiag, topRightDiag, botRightDiag, botLeftDiag);
      var rippleSize = rippleRadius * 2;
      var left = pointerX - rippleRadius;
      var top = pointerY - rippleRadius;
      return {
        directionInvariant: true,
        height: rippleSize + 'px',
        width: rippleSize + 'px',
        top: top + 'px',
        left: left + 'px'
      };
    },
    calcDiag: function calcDiag(a, b) {
      return Math.sqrt(a * a + b * b);
    }
  },
  components: { ripple: plugin_view_ripple }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-440676be","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/view/index.vue
var view_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-view",on:{"click":_vm.handlerClick,"mousedown":_vm.handleMouseDown,"mouseup":function($event){return _vm.end()},"mouseleave":function($event){return _vm.end()},"touchstart":_vm.handleTouchStart,"touchend":function($event){return _vm.end()},"touchcancel":function($event){return _vm.end()}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ripple),expression:"ripple"}],ref:"holder",staticClass:"yt-view-ripple"},_vm._l((_vm.ripples),function(item){return _c('ripple',{key:item.key,attrs:{"color":item.color,"opacity":item.opacity,"merge-style":item.style}})}),1),_vm._v(" "),_vm._t("default")],2)}
var view_staticRenderFns = []
var view_esExports = { render: view_render, staticRenderFns: view_staticRenderFns }
/* harmony default export */ var plugin_view = (view_esExports);
// CONCATENATED MODULE: ./src/common/plugin/view/index.vue
var view_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var view___vue_template_functional__ = false
/* styles */
var view___vue_styles__ = null
/* scopeId */
var view___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var view___vue_module_identifier__ = null
var view_Component = view_normalizeComponent(
  view,
  plugin_view,
  view___vue_template_functional__,
  view___vue_styles__,
  view___vue_scopeId__,
  view___vue_module_identifier__
)

/* harmony default export */ var common_plugin_view = (view_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/split/index.vue
//
//
//

/* harmony default export */ var split = ({
  name: 'yt-split',
  props: {
    /**
     * 背景色  默认为#f3f4f6
     */
    color: {
      type: String,
      default: '#f3f4f6'
    },
    /**
     * 高度  默认为15
     */
    size: {
      type: [String, Number],
      default: '15'
    }
  },
  computed: {
    splitStyle: function splitStyle() {
      return {
        backgroundColor: this.color,
        height: this.size + 'px'
      };
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1c8ebdef","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/split/index.vue
var split_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{style:(_vm.splitStyle)})}
var split_staticRenderFns = []
var split_esExports = { render: split_render, staticRenderFns: split_staticRenderFns }
/* harmony default export */ var plugin_split = (split_esExports);
// CONCATENATED MODULE: ./src/common/plugin/split/index.vue
var split_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var split___vue_template_functional__ = false
/* styles */
var split___vue_styles__ = null
/* scopeId */
var split___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var split___vue_module_identifier__ = null
var split_Component = split_normalizeComponent(
  split,
  plugin_split,
  split___vue_template_functional__,
  split___vue_styles__,
  split___vue_scopeId__,
  split___vue_module_identifier__
)

/* harmony default export */ var common_plugin_split = (split_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/cell/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var cell = ({
  name: 'yt-cell',
  props: {
    /**
     * 左侧文字
     */
    label: {
      type: [String, Number],
      default: ''
    },
    /**
     * label的宽度
     */
    labelWidth: {
      type: String,
      default: '30%'
    },
    /**
     * 右侧文字
     */
    value: {
      type: [String, Number],
      default: ''
    },
    /**
     * 左侧图片icon的src路径
     */
    icon: {
      type: String,
      default: ''
    },
    /**
     * 左侧icon字体的font类名
     */
    font: {
      type: String,
      default: ''
    },
    /**
     * 右侧是否出现向右箭头
     */
    isLink: {
      type: Boolean,
      default: false
    },
    /**
     * border  取值 none | half | all
     */
    border: {
      type: String,
      default: 'half'
    },
    /**
     * 是否有水波效果
     */
    ripple: {
      type: Boolean,
      default: false
    },
    /**
     * 角标
     */
    badge: {
      type: Object,
      default: null
    },
    /**
     * 大小
     */
    size: {
      type: String,
      default: null
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      /**
       * @event click
       * @description  点击事件
       * @type {event}
       */
      this.$emit('click', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-78d5e2dc","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/cell/index.vue
var cell_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{class:("yt-cell yt-border-" + _vm.border),attrs:{"ripple":_vm.ripple},on:{"click":_vm.handlerClick}},[_vm._t("icon",[(_vm.icon)?_c('img',{staticClass:"yt-cell-icon",attrs:{"src":_vm.icon}}):_vm._e(),_vm._v(" "),(_vm.font)?_c('i',{staticClass:"yt-cell-font",class:_vm.font}):_vm._e()]),_vm._v(" "),_c('label',{staticClass:"yt-cell-label",class:("is-" + _vm.size),style:({width: _vm.labelWidth})},[_vm._t("label",[_vm._v(_vm._s(_vm.label))])],2),_vm._v(" "),(_vm.badge)?_c('span',{staticClass:"yt-cell-badge"},[_c('yt-badge',_vm._b({},'yt-badge',_vm.badge,false))],1):_vm._e(),_vm._v(" "),_c('span',{staticClass:"yt-cell-value"},[_vm._t("default",[_vm._v(_vm._s(_vm.value))])],2),_vm._v(" "),(_vm.isLink)?_c('i',{staticClass:"yt-cell-link yt-icon yt-icon-right"}):_vm._e()],2)}
var cell_staticRenderFns = []
var cell_esExports = { render: cell_render, staticRenderFns: cell_staticRenderFns }
/* harmony default export */ var plugin_cell = (cell_esExports);
// CONCATENATED MODULE: ./src/common/plugin/cell/index.vue
var cell_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var cell___vue_template_functional__ = false
/* styles */
var cell___vue_styles__ = null
/* scopeId */
var cell___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var cell___vue_module_identifier__ = null
var cell_Component = cell_normalizeComponent(
  cell,
  plugin_cell,
  cell___vue_template_functional__,
  cell___vue_styles__,
  cell___vue_scopeId__,
  cell___vue_module_identifier__
)

/* harmony default export */ var common_plugin_cell = (cell_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/copy/index.vue
//
//
//
//
//

/* harmony default export */ var copy = ({
  name: 'yt-copy',
  props: {
    value: {
      type: String
    }
  },
  methods: {
    doCopy: function doCopy() {
      this.$refs.input.select();
      document.execCommand('Copy');
      this.$message({ message: '复制成功!', type: 'success' });
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-53bd17f2","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/copy/index.vue
var copy_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"click":_vm.doCopy}},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],ref:"input",staticStyle:{"opacity":"0","position":"absolute","z-index":"-1"},attrs:{"type":"text"},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._v(_vm._s(_vm.value)+"\n")])}
var copy_staticRenderFns = []
var copy_esExports = { render: copy_render, staticRenderFns: copy_staticRenderFns }
/* harmony default export */ var plugin_copy = (copy_esExports);
// CONCATENATED MODULE: ./src/common/plugin/copy/index.vue
var copy_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var copy___vue_template_functional__ = false
/* styles */
var copy___vue_styles__ = null
/* scopeId */
var copy___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var copy___vue_module_identifier__ = null
var copy_Component = copy_normalizeComponent(
  copy,
  plugin_copy,
  copy___vue_template_functional__,
  copy___vue_styles__,
  copy___vue_scopeId__,
  copy___vue_module_identifier__
)

/* harmony default export */ var common_plugin_copy = (copy_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/checkBox/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var checkBox = ({
  name: 'checkBox',
  props: {
    /**
     * 是否为简单样式
     */
    simple: {
      type: Boolean,
      default: false
    },
    /**
     * 按钮的位置  取值 left || right
     */
    pos: {
      type: String,
      default: 'left'
    },
    /**
     * 是否为inline
     */
    inline: {
      type: Boolean,
      default: false
    },
    /**
     * 是否禁用
     */
    disabled: Boolean,
    /**
     * checkbox的value
     */
    name: {
      type: [String, Number, Object],
      required: true
    },
    /**
     * @model
     * @description checkbox绑定的值
     */
    value: {
      type: Array
    },
    /**
     * checkbox的显示值
     */
    label: {
      type: String
    }
  },
  computed: {
    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-4062382e","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/checkBox/index.vue
var checkBox_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"yt-checkBox",class:_vm.inline ? 'is-inline' : 'is-block'},[(_vm.pos === 'right')?_c('span',{staticClass:"yt-checkBox-label"},[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2):_vm._e(),_vm._v(" "),_c('span',{staticClass:"yt-checkBox-wrapper",class:("is-" + _vm.pos)},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.currentValue),expression:"currentValue"}],staticClass:"yt-checkBox-input",attrs:{"type":"checkbox","disabled":_vm.disabled},domProps:{"value":_vm.name,"checked":Array.isArray(_vm.currentValue)?_vm._i(_vm.currentValue,_vm.name)>-1:(_vm.currentValue)},on:{"change":function($event){var $$a=_vm.currentValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.name,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.currentValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.currentValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.currentValue=$$c}}}}),_vm._v(" "),_c('span',{staticClass:"yt-checkBox-core",class:_vm.simple ? 'is-simple' : ''})]),_vm._v(" "),(_vm.pos === 'left')?_c('span',{staticClass:"yt-checkBox-label"},[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2):_vm._e()])}
var checkBox_staticRenderFns = []
var checkBox_esExports = { render: checkBox_render, staticRenderFns: checkBox_staticRenderFns }
/* harmony default export */ var plugin_checkBox = (checkBox_esExports);
// CONCATENATED MODULE: ./src/common/plugin/checkBox/index.vue
var checkBox_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var checkBox___vue_template_functional__ = false
/* styles */
var checkBox___vue_styles__ = null
/* scopeId */
var checkBox___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var checkBox___vue_module_identifier__ = null
var checkBox_Component = checkBox_normalizeComponent(
  checkBox,
  plugin_checkBox,
  checkBox___vue_template_functional__,
  checkBox___vue_styles__,
  checkBox___vue_scopeId__,
  checkBox___vue_module_identifier__
)

/* harmony default export */ var common_plugin_checkBox = (checkBox_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/switch/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var plugin_switch = ({
  name: 'yt-switch',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * 是否紧挨着文字
     */
    closely: {
      type: Boolean,
      default: false
    },
    /**
     * 该switch是否打开
     */
    value: {
      type: Boolean,
      default: false
    },
    /**
     * 该switch描述文字
     */
    label: String,
    /**
     * 禁用输入框
     */
    disabled: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },

    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
        /**
         * @event change
         * @description switch值改变的事件
         * @type {Boolean}
         */
        this.$emit('change', val);
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-680c9688","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/switch/index.vue
var switch_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"yt-switch",class:{ 'is-closely': _vm.closely }},[_c('span',{staticClass:"yt-switch-label"},[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2),_vm._v(" "),_c('span',{staticClass:"yt-switch-wrapper"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.currentValue),expression:"currentValue"}],staticClass:"yt-switch-input",attrs:{"disabled":_vm._disabled,"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.currentValue)?_vm._i(_vm.currentValue,null)>-1:(_vm.currentValue)},on:{"change":function($event){var $$a=_vm.currentValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.currentValue=$$a.concat([$$v]))}else{$$i>-1&&(_vm.currentValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.currentValue=$$c}}}}),_vm._v(" "),_c('span',{staticClass:"yt-switch-core"})])])}
var switch_staticRenderFns = []
var switch_esExports = { render: switch_render, staticRenderFns: switch_staticRenderFns }
/* harmony default export */ var common_plugin_switch = (switch_esExports);
// CONCATENATED MODULE: ./src/common/plugin/switch/index.vue
var switch_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var switch___vue_template_functional__ = false
/* styles */
var switch___vue_styles__ = null
/* scopeId */
var switch___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var switch___vue_module_identifier__ = null
var switch_Component = switch_normalizeComponent(
  plugin_switch,
  common_plugin_switch,
  switch___vue_template_functional__,
  switch___vue_styles__,
  switch___vue_scopeId__,
  switch___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_switch = (switch_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/radio/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var plugin_radio = ({
  name: 'yt-radio',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     *  按钮在文字左侧还是右侧 取值 left || right
     */
    pos: {
      type: String,
      default: 'right'
    },
    /**
     * 是否为inline
     */
    inline: {
      type: Boolean,
      default: true
    },
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * checkbox的value
     */
    name: {
      type: [String, Number, Object, Boolean],
      required: true
    },
    /**
     * @model
     * @description checkbox绑定的值
     */
    value: {},
    /**
     * radio的显示值
     */
    label: {
      type: String
    }
  },
  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },

    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(value) {
        this.$emit('input', value);
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-73ec9602","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/radio/index.vue
var radio_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"yt-radio",class:_vm.inline ? 'is-inline' : 'is-block'},[(_vm.pos === 'right')?_c('span',{staticClass:"yt-radio-label"},[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2):_vm._e(),_vm._v(" "),_c('span',{staticClass:"yt-radio-wrapper",class:("is-" + _vm.pos)},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.currentValue),expression:"currentValue"}],staticClass:"yt-radio-input",attrs:{"type":"radio","disabled":_vm._disabled},domProps:{"value":_vm.name,"checked":_vm._q(_vm.currentValue,_vm.name)},on:{"change":function($event){_vm.currentValue=_vm.name}}}),_vm._v(" "),_c('span',{staticClass:"yt-radio-core"})]),_vm._v(" "),(_vm.pos === 'left')?_c('span',{staticClass:"yt-radio-label"},[_vm._t("default",[_vm._v(_vm._s(_vm.label))])],2):_vm._e()])}
var radio_staticRenderFns = []
var radio_esExports = { render: radio_render, staticRenderFns: radio_staticRenderFns }
/* harmony default export */ var common_plugin_radio = (radio_esExports);
// CONCATENATED MODULE: ./src/common/plugin/radio/index.vue
var radio_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var radio___vue_template_functional__ = false
/* styles */
var radio___vue_styles__ = null
/* scopeId */
var radio___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var radio___vue_module_identifier__ = null
var radio_Component = radio_normalizeComponent(
  plugin_radio,
  common_plugin_radio,
  radio___vue_template_functional__,
  radio___vue_styles__,
  radio___vue_scopeId__,
  radio___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_radio = (radio_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/rate/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var rate = ({
  name: 'yt-rate',
  data: function data() {
    return {
      classMap: {},
      colorMap: {},
      pointerAtLeftHalf: true,
      currentValue: this.value,
      hoverIndex: -1
    };
  },


  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },

  props: {
    /**
     * 当前值
     * @model
     */
    value: {
      type: Number,
      default: 0
    },
    /**
     * 低分和中等分数的界限值，值本身被划分在低分中
     */
    lowThreshold: {
      type: Number,
      default: 2
    },
    /**
     * 高分和中等分数的界限值，值本身被划分在高分中
     */
    highThreshold: {
      type: Number,
      default: 4
    },
    /**
     * 最大分值
     */
    max: {
      type: Number,
      default: 5
    },
    /**
     * icon 的颜色数组，共有 3 个元素，为 3 个分段所对应的颜色
     */
    colors: {
      type: Array,
      default: function _default() {
        return ['#99A9BF', '#F7BA2A', '#FF9900'];
      }
    },
    /**
     * 未选中 icon 的颜色
     */
    voidColor: {
      type: String,
      default: '#C6D1DE'
    },
    /**
     * 只读时未选中 icon 的颜色
     */
    disabledVoidColor: {
      type: String,
      default: '#EFF2F7'
    },
    /**
     * icon 的类名数组，共有 3 个元素，为 3 个分段所对应的类名
     */
    iconClasses: {
      type: Array,
      default: function _default() {
        return ['icon-star-on', 'icon-star-on', 'icon-star-on'];
      }
    },
    /**
     * 未选中 icon 的类名
     */
    voidIconClass: {
      type: String,
      default: 'icon-star-off'
    },
    /**
     * 只读时未选中 icon 的类名
     */
    disabledVoidIconClass: {
      type: String,
      default: 'icon-star-on'
    },
    /**
     *  是否为只读
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * 是否允许半选
     */
    allowHalf: {
      type: Boolean,
      default: false
    },
    /**
     * 是否显示辅助文字，若为真，则会从 texts 数组中选取当前分数对应的文字内容
     */
    showText: {
      type: Boolean,
      default: false
    },
    /**
     * 辅助文字的颜色
     */
    textColor: {
      type: String,
      default: '#1f2d3d'
    },
    /**
     * 辅助文字数组
     */
    texts: {
      type: Array,
      default: function _default() {
        return ['极差', '失望', '一般', '满意', '惊喜'];
      }
    },
    /**
     * 分数显示模板
     */
    scoreTemplate: {
      type: String,
      default: '{value}'
    }
  },

  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },
    text: function text() {
      var result = '';
      if (this._disabled) {
        result = this.textTemplate.replace(/\{\s*value\s*\}/, this.value);
      } else {
        result = this.texts[Math.ceil(this.currentValue) - 1];
      }
      return result;
    },
    decimalStyle: function decimalStyle() {
      var width = '';
      if (this._disabled) {
        width = (this.valueDecimal < 50 ? 0 : 50) + '%';
      }
      if (this.allowHalf) {
        width = '50%';
      }
      return {
        color: this.activeColor,
        width: width
      };
    },
    valueDecimal: function valueDecimal() {
      return this.value * 100 - Math.floor(this.value) * 100;
    },
    decimalIconClass: function decimalIconClass() {
      return this.getValueFromMap(this.value, this.classMap);
    },
    voidClass: function voidClass() {
      return this._disabled ? this.classMap.disabledVoidClass : this.classMap.voidClass;
    },
    activeClass: function activeClass() {
      return this.getValueFromMap(this.currentValue, this.classMap);
    },
    activeColor: function activeColor() {
      return this.getValueFromMap(this.currentValue, this.colorMap);
    },
    classes: function classes() {
      var result = [];
      var i = 0;
      var threshold = this.currentValue;
      if (this.allowHalf && this.currentValue !== Math.floor(this.currentValue)) {
        threshold--;
      }
      for (; i < threshold; i++) {
        result.push(this.activeClass);
      }
      for (; i < this.max; i++) {
        result.push(this.voidClass);
      }
      return result;
    }
  },

  watch: {
    value: function value(val) {
      /**
       * 分值改变时触发
       * @event change
       */
      this.$emit('change', val);
      this.currentValue = val;
      this.pointerAtLeftHalf = this.value !== Math.floor(this.value);
    }
  },

  methods: {
    getValueFromMap: function getValueFromMap(value, map) {
      var result = '';
      if (value <= this.lowThreshold) {
        result = map.lowColor || map.lowClass;
      } else if (value >= this.highThreshold) {
        result = map.highColor || map.highClass;
      } else {
        result = map.mediumColor || map.mediumClass;
      }
      return result;
    },
    showDecimalIcon: function showDecimalIcon(item) {
      var showWhenDisabled = this._disabled && this.valueDecimal > 0 && item - 1 < this.value && item > this.value;
      /* istanbul ignore next */
      var showWhenAllowHalf = this.allowHalf && this.pointerAtLeftHalf && item - 0.5 <= this.currentValue && item > this.currentValue;
      return showWhenDisabled || showWhenAllowHalf;
    },
    getIconStyle: function getIconStyle(item) {
      var voidColor = this._disabled ? this.colorMap.disabledVoidColor : this.colorMap.voidColor;
      return {
        color: item <= this.currentValue ? this.activeColor : voidColor
      };
    },
    selectValue: function selectValue(value) {
      if (this._disabled) {
        return;
      }
      if (this.allowHalf && this.pointerAtLeftHalf) {
        this.$emit('input', this.currentValue);
      } else {
        this.$emit('input', value);
      }
    },
    setCurrentValue: function setCurrentValue(value, event) {
      if (this._disabled) {
        return;
      }
      /* istanbul ignore if */
      if (this.allowHalf) {
        var target = event.target;
        if (Object(utils["o" /* hasClass */])(target, 'yt-rate__item')) {
          target = target.querySelector('.yt-rate__icon');
        }
        if (Object(utils["o" /* hasClass */])(target, 'yt-rate__decimal')) {
          target = target.parentNode;
        }
        this.pointerAtLeftHalf = event.offsetX * 2 <= target.clientWidth;
        this.currentValue = this.pointerAtLeftHalf ? value - 0.5 : value;
      } else {
        this.currentValue = value;
      }
      this.hoverIndex = value;
    },
    resetCurrentValue: function resetCurrentValue() {
      if (this._disabled) {
        return;
      }
      if (this.allowHalf) {
        this.pointerAtLeftHalf = this.value !== Math.floor(this.value);
      }
      this.currentValue = this.value;
      this.hoverIndex = -1;
    }
  },

  created: function created() {
    if (!this.value) {
      this.$emit('input', 0);
    }
    this.classMap = {
      lowClass: this.iconClasses[0],
      mediumClass: this.iconClasses[1],
      highClass: this.iconClasses[2],
      voidClass: this.voidIconClass,
      disabledVoidClass: this.disabledVoidIconClass
    };
    this.colorMap = {
      lowColor: this.colors[0],
      mediumColor: this.colors[1],
      highColor: this.colors[2],
      voidColor: this.voidColor,
      disabledVoidColor: this.disabledVoidColor
    };
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-64b57b66","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/rate/index.vue
var rate_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-rate"},[_vm._l((_vm.max),function(item,index){return _c('span',{key:index,staticClass:"yt-rate-item",style:({ cursor: _vm._disabled ? 'auto' : 'pointer' }),on:{"mousemove":function($event){return _vm.setCurrentValue(item, $event)},"mouseleave":_vm.resetCurrentValue,"click":function($event){return _vm.selectValue(item)}}},[_c('i',{staticClass:"yt-icon yt-rate-icon",class:[_vm.classes[item - 1], { 'hover': _vm.hoverIndex === item }],style:(_vm.getIconStyle(item))},[(_vm.showDecimalIcon(item))?_c('i',{staticClass:"yt-icon yt-rate-decimal",class:_vm.decimalIconClass,style:(_vm.decimalStyle)}):_vm._e()])])}),_vm._v(" "),(_vm.showText)?_c('span',{staticClass:"yt-rate-text",style:({ color: _vm.textColor })},[_vm._v(_vm._s(_vm.text))]):_vm._e()],2)}
var rate_staticRenderFns = []
var rate_esExports = { render: rate_render, staticRenderFns: rate_staticRenderFns }
/* harmony default export */ var plugin_rate = (rate_esExports);
// CONCATENATED MODULE: ./src/common/plugin/rate/index.vue
var rate_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var rate___vue_template_functional__ = false
/* styles */
var rate___vue_styles__ = null
/* scopeId */
var rate___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var rate___vue_module_identifier__ = null
var rate_Component = rate_normalizeComponent(
  rate,
  plugin_rate,
  rate___vue_template_functional__,
  rate___vue_styles__,
  rate___vue_scopeId__,
  rate___vue_module_identifier__
)

/* harmony default export */ var common_plugin_rate = (rate_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/count/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var plugin_count = ({
  name: 'yt-count',
  props: {
    /**
     * 设置计数器允许的最大值
     */
    max: {
      type: Number,
      default: 100
    },
    /**
     * 设置计数器允许的最小值
     */
    min: {
      type: Number,
      default: 0
    },
    /**
     * 计数器当前值
     * @model
     */
    value: {
      type: Number,
      default: 0
    },
    /**
     * 计数器步长
     */
    step: {
      type: Number,
      default: 1
    },
    /**
     * 总是显示数字
     */
    alwaysShowNum: {
      type: Boolean,
      default: false
    },
    /**
     * 总是显示减号
     */
    alwaysShowReduce: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    num: {
      get: function get() {
        return this.value;
      },
      set: function set(num) {
        if (num < this.min) {
          num = this.min;
        }
        if (num > this.max) {
          num = this.max;
        }
        this.$emit('input', num);
      }
    }
  },
  methods: {
    doAdd: function doAdd(e) {
      if (this.num === this.max) return;
      this.num = this.num + this.step;
      /**
       * @event add
       * @description 数据增加时
       * @type {event}
       */
      this.$emit('add', e);
      /**
       * @event change
       * @description 数据改变时
       * @type {event}
       */
      this.$emit('change', e);
    },
    doReduce: function doReduce(e) {
      if (this.num === this.min) return;
      this.num = this.num - this.step;
      /**
       * @event reduce
       * @description 数据减少时
       * @type {event}
       */
      this.$emit('reduce', e);
      this.$emit('change', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-2d36ec58","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/count/index.vue
var count_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-count"},[_c('transition',{attrs:{"name":"yt-count-anim"}},[(_vm.alwaysShowReduce || _vm.num !== _vm.min)?_c('span',{staticClass:"yt-count-reduce",on:{"click":_vm.doReduce}},[_c('yt-view',{staticClass:"yt-count-icon",class:{'is-disabled': _vm.num === _vm.min},attrs:{"ripple":_vm.num !== _vm.min,"centerRipple":""}},[_c('i',{staticClass:"yt-icon yt-icon-reduce"})])],1):_vm._e()]),_vm._v(" "),_c('span',{staticClass:"yt-count-num"},[_vm._v(_vm._s(_vm.alwaysShowNum ? _vm.num : _vm.num === _vm.min ? '' : _vm.num))]),_vm._v(" "),_c('span',{staticClass:"yt-count-add",on:{"click":_vm.doAdd}},[_c('yt-view',{staticClass:"yt-count-icon",class:{'is-disabled': _vm.num === _vm.max},attrs:{"ripple":_vm.num !== _vm.max,"centerRipple":""}},[_c('i',{staticClass:"yt-icon yt-icon-plus"})])],1)],1)}
var count_staticRenderFns = []
var count_esExports = { render: count_render, staticRenderFns: count_staticRenderFns }
/* harmony default export */ var common_plugin_count = (count_esExports);
// CONCATENATED MODULE: ./src/common/plugin/count/index.vue
var count_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var count___vue_template_functional__ = false
/* styles */
var count___vue_styles__ = null
/* scopeId */
var count___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var count___vue_module_identifier__ = null
var count_Component = count_normalizeComponent(
  plugin_count,
  common_plugin_count,
  count___vue_template_functional__,
  count___vue_styles__,
  count___vue_scopeId__,
  count___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_count = (count_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/input/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var input = ({
  name: 'yt-input',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     *  placeholder的文字
     */
    placeholder: {
      type: String,
      default: '请输入...'
    },
    /**
     *  当前值
     *  @model
     */
    value: {
      type: [String, Number],
      default: ''
    },
    /**
     *  是否禁用输入
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     *  背景色
     */
    fillColor: {
      type: String,
      default: '#FFFFFF'
    },
    /**
     *  风格  dark  light
     */
    theme: {
      type: String,
      default: 'dark'
    },
    /**
     *  是否显示border
     */
    border: {
      type: Boolean,
      default: false
    },
    /**
     * 是否开启截流
     */
    throttle: {
      type: Boolean,
      default: true
    },
    /**
     * input中的type
     */
    type: {
      type: String,
      default: 'text'
    },
    /**
     * 是否可以清理输入值
     */
    clearable: {
      type: Boolean,
      default: true
    },
    /**
     * 输入的位置
     */
    align: {
      type: String,
      default: 'right'
    }
  },
  data: function data() {
    return {
      key: this.value
    };
  },

  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },
    inputStyle: function inputStyle() {
      return {
        backgroundColor: this.fillColor
      };
    }
  },
  methods: {
    /**
     * @public
     * @description 使input失去焦点
     * @return {void}
     */
    blur: function blur() {
      this.$refs.input.blur();
    },

    /**
     * @public
     * @description 使input获取焦点
     * @return {void}
     */
    focus: function focus() {
      this.$refs.input.focus();
    }
  },
  watch: {
    'key': function key(val) {
      var _this = this;

      /**
       * 双向绑定 值改变实时派发
       * @event input
       * @type {string}
       */
      this.$emit('input', val);
      var fn = function fn(val) {
        /**
         * 值改变时，如果开启截流事件会截流派发
         * @event change
         * @type {string}
         */
        _this.$emit('change', val);
      };
      if (!this.throttle) {
        fn(val);
      } else {
        if (!this._throttleInstance) {
          this._throttleInstance = Object(utils["v" /* throttle */])(fn, 500, 2000);
        }
        this._throttleInstance(val);
      }
    },
    'value': function value(val) {
      this.key = val;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-7deb0bd8","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/input/index.vue
var input_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-input",class:[("yt-input__" + _vm.theme), {'is-noBorder': !_vm.border}, ("is-" + _vm.align)],style:(_vm.inputStyle)},[((_vm.type)==='checkbox')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.key),expression:"key"}],ref:"input",class:{'is-noIcon': !_vm.clearable},attrs:{"placeholder":_vm.placeholder,"disabled":_vm._disabled,"type":"checkbox"},domProps:{"checked":Array.isArray(_vm.key)?_vm._i(_vm.key,null)>-1:(_vm.key)},on:{"blur":function($event){return _vm.$emit('blur')},"change":function($event){var $$a=_vm.key,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.key=$$a.concat([$$v]))}else{$$i>-1&&(_vm.key=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.key=$$c}}}}):((_vm.type)==='radio')?_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.key),expression:"key"}],ref:"input",class:{'is-noIcon': !_vm.clearable},attrs:{"placeholder":_vm.placeholder,"disabled":_vm._disabled,"type":"radio"},domProps:{"checked":_vm._q(_vm.key,null)},on:{"blur":function($event){return _vm.$emit('blur')},"change":function($event){_vm.key=null}}}):_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.key),expression:"key"}],ref:"input",class:{'is-noIcon': !_vm.clearable},attrs:{"placeholder":_vm.placeholder,"disabled":_vm._disabled,"type":_vm.type},domProps:{"value":(_vm.key)},on:{"blur":function($event){return _vm.$emit('blur')},"input":function($event){if($event.target.composing){ return; }_vm.key=$event.target.value}}}),_vm._v(" "),(!_vm._disabled && _vm.clearable && _vm.key)?_c('i',{staticClass:"yt-input-clear yt-icon yt-icon-input-close",on:{"click":function($event){_vm.key = ''}}}):_vm._e()])}
var input_staticRenderFns = []
var input_esExports = { render: input_render, staticRenderFns: input_staticRenderFns }
/* harmony default export */ var plugin_input = (input_esExports);
// CONCATENATED MODULE: ./src/common/plugin/input/index.vue
var input_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var input___vue_template_functional__ = false
/* styles */
var input___vue_styles__ = null
/* scopeId */
var input___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var input___vue_module_identifier__ = null
var input_Component = input_normalizeComponent(
  input,
  plugin_input,
  input___vue_template_functional__,
  input___vue_styles__,
  input___vue_scopeId__,
  input___vue_module_identifier__
)

/* harmony default export */ var common_plugin_input = (input_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/sticky/index.vue
//
//
//
//
//
//
//

/* harmony default export */ var sticky = ({
  name: 'yt-sticky',
  props: {
    /**
     * top值
     */
    top: {
      type: [String],
      default: '0px'
    },
    /**
     * index
     */
    zIndex: {
      type: Number,
      default: 10
    }
  },
  computed: {
    stickyStyle: function stickyStyle() {
      return {
        top: this.top,
        zIndex: this.zIndex
      };
    }
  },
  data: function data() {
    return {
      child: null,
      stickyHeight: 0,
      parsedTop: parseFloat(this.top, 10),
      position: 'static'
    };
  },

  watch: {
    position: function position(cur) {
      this.child.style.position = cur;
      switch (cur) {
        case 'sticky':
          this.child.style.position = 'fixed';
          this.child.style.top = this.top;
          break;
        case 'absolute':
          this.child.style.position = 'absolute';
          this.child.style.top = 'auto';
          this.child.style.bottom = '0';
          break;
        case 'static':
        default:
          this.child.style.position = 'static';
      }
    }
  },
  methods: {
    scrollHandler: function scrollHandler() {
      var offset = this.$el.getBoundingClientRect();
      var poffset = this.$el.parentElement.getBoundingClientRect();
      var isStatic = offset.top > this.parsedTop;
      var isAbsolute = poffset.bottom < this.parsedTop + this.stickyHeight;
      if (isStatic) {
        this.position = 'static';
      } else if (isAbsolute) {
        this.position = 'absolute';
      } else {
        this.position = 'sticky';
      }
    }
  },
  mounted: function mounted() {
    var _this = this;

    // 保证 this.$el 已经插入文档
    this.$nextTick(function () {
      var computedStyle = window.getComputedStyle(_this.$el);
      var position = computedStyle.position;
      var stickySupport = position.indexOf('sticky') > -1;
      var child = _this.$el.firstElementChild;
      if (!stickySupport && child) {
        _this.child = child;
        child.style.zIndex = _this.zIndex;
        _this.stickyHeight = parseFloat(computedStyle.height, 10);
        _this.$el.style.position = 'static';
        _this.$el.style.height = computedStyle.height;
        window.addEventListener('scroll', _this.scrollHandler, true);
        _this.scrollHandler();
      }
    });
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-6cb5e402","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/sticky/index.vue
var sticky_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-sticky",style:(_vm.stickyStyle)},[_vm._t("default")],2)}
var sticky_staticRenderFns = []
var sticky_esExports = { render: sticky_render, staticRenderFns: sticky_staticRenderFns }
/* harmony default export */ var plugin_sticky = (sticky_esExports);
// CONCATENATED MODULE: ./src/common/plugin/sticky/index.vue
var sticky_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var sticky___vue_template_functional__ = false
/* styles */
var sticky___vue_styles__ = null
/* scopeId */
var sticky___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var sticky___vue_module_identifier__ = null
var sticky_Component = sticky_normalizeComponent(
  sticky,
  plugin_sticky,
  sticky___vue_template_functional__,
  sticky___vue_styles__,
  sticky___vue_scopeId__,
  sticky___vue_module_identifier__
)

/* harmony default export */ var common_plugin_sticky = (sticky_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/badge/index.vue
//
//
//
//
//
//
//
//
//

/* harmony default export */ var badge = ({
  name: 'yt-badge',
  props: {
    /**
     * 角标值
     */
    value: {
      type: [String, Number]
    },
    /**
     * 是否为原点
     */
    isDot: {
      type: Boolean,
      default: false
    },
    /**
     * 角标最大值，超过最大值一律为max+ ， 当value为number时生效
     */
    max: {
      type: Number,
      default: 99
    }
  },
  computed: {
    currentValue: function currentValue() {
      if (typeof this.value === 'string') {
        return this.value;
      } else if (typeof this.value === 'number') {
        return this.value > this.max ? this.max + '+' : this.value;
      }
      return '';
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-7df78796","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/badge/index.vue
var badge_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.currentValue || _vm.isDot)?_c('sup',{staticClass:"yt-badge",class:{ 'is-dot': _vm.isDot }},[_vm._v("\n  "+_vm._s(_vm.currentValue)+"\n")]):_vm._e()}
var badge_staticRenderFns = []
var badge_esExports = { render: badge_render, staticRenderFns: badge_staticRenderFns }
/* harmony default export */ var plugin_badge = (badge_esExports);
// CONCATENATED MODULE: ./src/common/plugin/badge/index.vue
var badge_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var badge___vue_template_functional__ = false
/* styles */
var badge___vue_styles__ = null
/* scopeId */
var badge___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var badge___vue_module_identifier__ = null
var badge_Component = badge_normalizeComponent(
  badge,
  plugin_badge,
  badge___vue_template_functional__,
  badge___vue_styles__,
  badge___vue_scopeId__,
  badge___vue_module_identifier__
)

/* harmony default export */ var common_plugin_badge = (badge_Component.exports);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/regenerator/index.js
var regenerator = __webpack_require__("lC5x");
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("J0Oq");
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/extends.js
var helpers_extends = __webpack_require__("4YfN");
var extends_default = /*#__PURE__*/__webpack_require__.n(helpers_extends);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/btn/index.vue



//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var btn = ({
  name: 'yt-btn',
  inject: {
    ytForm: {
      default: null
    },
    ytBtnGroup: {
      default: null
    }
  },
  props: {
    /**
     * btn风格类型  white || blue || red || green || black
     */
    theme: {
      type: String,
      default: 'blue'
    },
    /**
     * 按钮尺寸 block || medium || small || mini
     */
    size: {
      type: String,
      default: 'block'
    },
    /**
     * 是否禁用btn
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * loading时执行的函数
     */
    loading: {
      type: Function,
      default: null
    },
    /**
     * 是否贴边  （没有margin border）
     */
    edge: {
      type: Boolean,
      default: false
    },
    /**
     * 是否为朴素状态
     */
    plain: {
      type: Boolean,
      default: false
    },
    /**
     * 是否圆角按钮
     */
    round: {
      type: Boolean,
      default: false
    },
    /**
     * 是否圆形按钮
     */
    circle: {
      type: Boolean,
      default: false
    },
    /**
     * 图标类名
     */
    icon: {
      type: String
    },
    /**
     * 是否进行表单校验 与form组件结合使用 具体参考form组件
     */
    validator: {
      type: Boolean,
      default: false
    },
    /**
     * 水波效果
     */
    ripple: {
      type: Boolean,
      default: true
    },
    /**
     * loading的配置项
     */
    loadingOption: {
      type: Object
    }
  },
  computed: {
    btnStyle: function btnStyle() {
      return {
        borderColor: this.ytBtnGroup && this.ytBtnGroup.edge ? this.ytBtnGroup.edgeBorderColor : ''
      };
    },
    _loadingOption: function _loadingOption() {
      return extends_default()({
        color: '#fff',
        size: '20px',
        type: 'ios-small'
      }, this.loadingOption);
    }
  },
  data: function data() {
    return {
      InLoading: false
    };
  },

  methods: {
    handlerClick: function handlerClick(e) {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var fn, _ytForm, model, rules, res;

        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (_this.loading) {
                  _context.next = 3;
                  break;
                }

                /**
                 * @description 点击事件
                 * @event click
                 * @type {event}
                 */
                _this.$emit('click', e);
                return _context.abrupt('return');

              case 3:
                if (_this.InLoading) {
                  _context.next = 15;
                  break;
                }

                _this.InLoading = true;

                fn = function fn() {
                  _this.InLoading = false;
                };

                if (!(_this.validator && _this.ytForm)) {
                  _context.next = 14;
                  break;
                }

                _ytForm = _this.ytForm, model = _ytForm.model, rules = _ytForm.rules;
                _context.next = 10;
                return Object(utils["w" /* validator */])(model, rules);

              case 10:
                res = _context.sent;

                res.success ? _this.loading(fn) : fn();
                _context.next = 15;
                break;

              case 14:
                _this.loading(fn);

              case 15:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-b44f051a","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/btn/index.vue
var btn_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-button",class:[
    _vm.theme ? 'yt-button__' + _vm.theme : '',
    _vm.size ? 'yt-button__' + _vm.size : '',
    {
      'is-plain': _vm.plain,
      'is-edge': _vm.edge,
      'is-disabled': _vm.disabled,
      'is-loading': _vm.loading && _vm.InLoading,
      'is-circle': _vm.circle,
      'is-round': _vm.round
    }
  ],style:(_vm.btnStyle),attrs:{"ripple":_vm.ripple},on:{"click":_vm.handlerClick}},[(_vm.icon)?_c('i',{staticClass:"yt-button-icon",class:_vm.icon}):_vm._e(),_vm._v(" "),(_vm.loading && _vm.InLoading)?_c('yt-spinner',_vm._b({staticClass:"yt-button-loading"},'yt-spinner',_vm._loadingOption,false)):_vm._e(),_vm._v(" "),(_vm.$slots.default)?_c('span',{staticClass:"yt-button-text"},[_vm._t("default")],2):_vm._e()],1)}
var btn_staticRenderFns = []
var btn_esExports = { render: btn_render, staticRenderFns: btn_staticRenderFns }
/* harmony default export */ var plugin_btn = (btn_esExports);
// CONCATENATED MODULE: ./src/common/plugin/btn/index.vue
var btn_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var btn___vue_template_functional__ = false
/* styles */
var btn___vue_styles__ = null
/* scopeId */
var btn___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var btn___vue_module_identifier__ = null
var btn_Component = btn_normalizeComponent(
  btn,
  plugin_btn,
  btn___vue_template_functional__,
  btn___vue_styles__,
  btn___vue_scopeId__,
  btn___vue_module_identifier__
)

/* harmony default export */ var common_plugin_btn = (btn_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/btnGroup/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var btnGroup = ({
  name: 'yt-btnGroup',
  provide: function provide() {
    return {
      ytBtnGroup: this
    };
  },

  props: {
    /**
     * 是否使用阴影
     */
    shadow: {
      type: Boolean,
      default: true
    },
    /**
     * 是否使用border
     */
    border: {
      type: Boolean,
      default: false
    },
    /**
     * 包裹的btn组件是否紧挨展示 紧挨时候会有高亮的border
     */
    edge: {
      type: Boolean,
      default: false
    },
    /**
     * edge为true时， 多个btn紧挨时候的borderColor
     */
    edgeBorderColor: {
      type: String,
      default: null
    },
    /**
     * 不显示左右border
     */
    noBorder: {
      type: Boolean,
      default: false
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0abbb903","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/btnGroup/index.vue
var btnGroup_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-buttonGroup",class:{
    'is-shadow': _vm.shadow,
    'is-border': _vm.border,
    'is-edge': _vm.edge,
    'is-noBorder': _vm.noBorder
   }},[_vm._t("default")],2)}
var btnGroup_staticRenderFns = []
var btnGroup_esExports = { render: btnGroup_render, staticRenderFns: btnGroup_staticRenderFns }
/* harmony default export */ var plugin_btnGroup = (btnGroup_esExports);
// CONCATENATED MODULE: ./src/common/plugin/btnGroup/index.vue
var btnGroup_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var btnGroup___vue_template_functional__ = false
/* styles */
var btnGroup___vue_styles__ = null
/* scopeId */
var btnGroup___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var btnGroup___vue_module_identifier__ = null
var btnGroup_Component = btnGroup_normalizeComponent(
  btnGroup,
  plugin_btnGroup,
  btnGroup___vue_template_functional__,
  btnGroup___vue_styles__,
  btnGroup___vue_scopeId__,
  btnGroup___vue_module_identifier__
)

/* harmony default export */ var common_plugin_btnGroup = (btnGroup_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tag/index.vue
//
//
//
//
//
//
//
//

/* harmony default export */ var tag = ({
  name: 'yt-tag',
  props: {
    /**
     * 是否显示关闭按钮
     */
    closable: {
      type: Boolean,
      default: false
    },
    /**
     * tag大小 取值  medium || normal || small || mini
     */
    size: {
      type: String,
      default: 'mini'
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      /**
       * @event click
       * @description 点击了标签事件
       * @type {event}
       */
      this.$emit('click', e);
    },
    handlerClickClose: function handlerClickClose(e) {
      /**
       * @event tag-close
       * @description 点击了表情关闭事件
       * @type {event}
       */
      this.$emit('tag-close', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0026d1b6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tag/index.vue
var tag_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-btn',{staticClass:"yt-tag",attrs:{"ripple":false,"size":_vm.size,"plain":""},on:{"click":_vm.handlerClick}},[_vm._t("default"),_vm._v(" "),(_vm.closable)?_c('i',{staticClass:"yt-tag-close yt-icon yt-icon-input-close",on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.handlerClickClose($event)}}}):_vm._e()],2)}
var tag_staticRenderFns = []
var tag_esExports = { render: tag_render, staticRenderFns: tag_staticRenderFns }
/* harmony default export */ var plugin_tag = (tag_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tag/index.vue
var tag_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tag___vue_template_functional__ = false
/* styles */
var tag___vue_styles__ = null
/* scopeId */
var tag___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tag___vue_module_identifier__ = null
var tag_Component = tag_normalizeComponent(
  tag,
  plugin_tag,
  tag___vue_template_functional__,
  tag___vue_styles__,
  tag___vue_scopeId__,
  tag___vue_module_identifier__
)

/* harmony default export */ var common_plugin_tag = (tag_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/card/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var card = ({
  name: 'yt-card',
  props: {
    /**
     * card title
     */
    title: {
      type: String
    },
    /**
     * btn名称
     */
    btn: {
      type: String
    },
    /**
     * 是否显示阴影
     */
    shadow: {
      type: Boolean,
      default: true
    },
    /**
     * 是否显示title中的小标签
     */
    tag: {
      type: Boolean,
      default: true
    },
    /**
     * 是否贴边
     */
    edge: {
      type: Boolean,
      default: true
    },
    /**
     * 显示更多
     */
    more: {
      type: Boolean,
      default: true
    }
  },
  methods: {
    handler: function handler(e) {
      /**
       * @event btn-click
       * @description 点击事件
       * @type {event}
       */
      this.$emit('btn-click', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-58d9d54e","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/card/index.vue
var card_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-card",class:{'is-edge': _vm.edge, 'is-shadow': _vm.shadow}},[(_vm.title)?_c('div',{staticClass:"yt-card-header",class:{'is-tag': _vm.tag}},[_c('span',{staticClass:"yt-card-title"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),(_vm.more)?_c('span',{staticClass:"yt-card-more"},[_vm._t("more")],2):_vm._e()]):_vm._e(),_vm._v(" "),_vm._t("header"),_vm._v(" "),_c('div',{staticClass:"yt-card-body"},[_vm._t("default"),_vm._v(" "),(_vm.btn)?_c('div',{staticClass:"yt-card-btn"},[_c('yt-btn',{attrs:{"size":"small","plain":"","round":""},on:{"click":_vm.handler}},[_vm._v(_vm._s(_vm.btn))])],1):_vm._e()],2)],2)}
var card_staticRenderFns = []
var card_esExports = { render: card_render, staticRenderFns: card_staticRenderFns }
/* harmony default export */ var plugin_card = (card_esExports);
// CONCATENATED MODULE: ./src/common/plugin/card/index.vue
var card_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var card___vue_template_functional__ = false
/* styles */
var card___vue_styles__ = null
/* scopeId */
var card___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var card___vue_module_identifier__ = null
var card_Component = card_normalizeComponent(
  card,
  plugin_card,
  card___vue_template_functional__,
  card___vue_styles__,
  card___vue_scopeId__,
  card___vue_module_identifier__
)

/* harmony default export */ var common_plugin_card = (card_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/grid/index.vue
//
//
//
//
//
//
//
//
//

/* harmony default export */ var grid = ({
  name: 'yt-grid',
  props: {
    /**
     * 数据列表
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * 默认情况下 x方向可以放3个item
     */
    x: {
      type: Number,
      default: 3
    },
    /**
     * 默认情况下 y方向可以放5行  超出5行时候进行滚动
     */
    y: {
      type: Number,
      default: 5
    }
  },
  computed: {
    btnStyle: function btnStyle() {
      return {
        width: 100 / this.x + '%',
        height: 100 / this.y + '%'
      };
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1fcd3590","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/grid/index.vue
var grid_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-grid"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"yt-grid-btn",style:(_vm.btnStyle)},[_vm._t("default",null,null,item)],2)}),0)}
var grid_staticRenderFns = []
var grid_esExports = { render: grid_render, staticRenderFns: grid_staticRenderFns }
/* harmony default export */ var plugin_grid = (grid_esExports);
// CONCATENATED MODULE: ./src/common/plugin/grid/index.vue
var grid_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var grid___vue_template_functional__ = false
/* styles */
var grid___vue_styles__ = null
/* scopeId */
var grid___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var grid___vue_module_identifier__ = null
var grid_Component = grid_normalizeComponent(
  grid,
  plugin_grid,
  grid___vue_template_functional__,
  grid___vue_styles__,
  grid___vue_scopeId__,
  grid___vue_module_identifier__
)

/* harmony default export */ var common_plugin_grid = (grid_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/grid/gridItem.vue
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var gridItem = ({
  name: 'yt-gridItem',
  props: {
    /**
     *  角标 { value, isDot, max}
     */
    badge: {
      type: Object,
      default: null
    },
    /**
     * 字体的class名称
     */
    font: {
      type: String,
      default: ''
    },
    /**
     * 图片的url路径
     */
    img: {
      type: String,
      default: ''
    },
    /**
     * 显示的文字
     */
    text: {
      type: String,
      default: ''
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      /**
       * @event click
       * @description 点击事件
       * @type {event}
       */
      this.$emit('click', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5af5b8a4","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/grid/gridItem.vue
var gridItem_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-gridItem",on:{"click":_vm.handlerClick}},[_c('span',{staticClass:"yt-gridItem-wrapper"},[_vm._t("default"),_vm._v(" "),(_vm.badge)?_c('yt-badge',_vm._b({},'yt-badge',_vm.badge,false)):_vm._e(),_vm._v(" "),(_vm.font)?_c('i',{staticClass:"yt-gridItem-icon",class:_vm.font}):_vm._e(),_vm._v(" "),(_vm.img)?_c('img',{staticClass:"yt-gridItem-img",attrs:{"src":_vm.img}}):_vm._e(),_vm._v(" "),_c('p',{staticClass:"yt-gridItem-desc"},[_vm._v(_vm._s(_vm.text))])],2)])}
var gridItem_staticRenderFns = []
var gridItem_esExports = { render: gridItem_render, staticRenderFns: gridItem_staticRenderFns }
/* harmony default export */ var grid_gridItem = (gridItem_esExports);
// CONCATENATED MODULE: ./src/common/plugin/grid/gridItem.vue
var gridItem_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var gridItem___vue_template_functional__ = false
/* styles */
var gridItem___vue_styles__ = null
/* scopeId */
var gridItem___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var gridItem___vue_module_identifier__ = null
var gridItem_Component = gridItem_normalizeComponent(
  gridItem,
  grid_gridItem,
  gridItem___vue_template_functional__,
  gridItem___vue_styles__,
  gridItem___vue_scopeId__,
  gridItem___vue_module_identifier__
)

/* harmony default export */ var plugin_grid_gridItem = (gridItem_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/header/headerBtn.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var headerBtn = ({
  name: 'yt-headerBtn',
  props: {
    /**
     * btn 头像时的路径
     */
    avatar: {
      type: String
    },
    /**
     * btn 为字体时候的class名称
     */
    font: {
      type: String
    },
    /**
     * btn 为图片时候的src路径
     */
    src: {
      type: String
    },
    /**
     * btn 的文字
     */
    text: {
      type: String
    },
    /**
     * btn的点击事件
     */
    click: {
      type: Function
    },
    /**
     * btn的角标属性
     */
    badge: {
      type: Object
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      !this.click || this.click(e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-21cf11b4","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/header/headerBtn.vue
var headerBtn_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-headerBtn",attrs:{"centerRipple":(_vm.font || _vm.src) && !_vm.text,"ripple":!_vm.avatar},on:{"click":_vm.handlerClick}},[(_vm.font)?_c('i',{staticClass:"yt-headerBtn-icon",class:_vm.font}):_vm._e(),_vm._v(" "),(_vm.src)?_c('img',{staticClass:"yt-headerBtn-img",attrs:{"src":_vm.src}}):_vm._e(),_vm._v(" "),(_vm.avatar)?_c('img',{staticClass:"yt-headerBtn-avatar",attrs:{"src":_vm.avatar}}):_vm._e(),_vm._v(" "),(_vm.text)?_c('span',{staticClass:"yt-headerBtn-text"},[_vm._v(_vm._s(_vm.text)+"\n  ")]):_vm._e(),_vm._v(" "),(_vm.badge)?_c('span',{staticClass:"yt-headerBtn-badge"},[_c('yt-badge',_vm._b({},'yt-badge',_vm.badge,false))],1):_vm._e()])}
var headerBtn_staticRenderFns = []
var headerBtn_esExports = { render: headerBtn_render, staticRenderFns: headerBtn_staticRenderFns }
/* harmony default export */ var header_headerBtn = (headerBtn_esExports);
// CONCATENATED MODULE: ./src/common/plugin/header/headerBtn.vue
var headerBtn_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var headerBtn___vue_template_functional__ = false
/* styles */
var headerBtn___vue_styles__ = null
/* scopeId */
var headerBtn___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var headerBtn___vue_module_identifier__ = null
var headerBtn_Component = headerBtn_normalizeComponent(
  headerBtn,
  header_headerBtn,
  headerBtn___vue_template_functional__,
  headerBtn___vue_styles__,
  headerBtn___vue_scopeId__,
  headerBtn___vue_module_identifier__
)

/* harmony default export */ var plugin_header_headerBtn = (headerBtn_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/header/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var header = ({
  name: 'yt-header',
  components: { headerBtn: plugin_header_headerBtn },
  props: {
    /**
     * 导航左侧的按钮 数据类型为headerBtn的参数
     * 例如 [{ font: 'yt-icon yt-icon-back', text: '返回',  click: () => {}}]
     */
    leftData: {
      type: Array,
      default: function _default() {
        var _this = this;

        return [{
          font: 'yt-icon yt-icon-back',
          click: function click() {
            _this.$router.$back();
          }
        }];
      }
    },
    /**
     * 导航左侧的按钮 数据类型为headerBtn的参数
     * 例如 [{ font: 'yt-icon yt-icon-search',  click: () => {}}]
     */
    rightData: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * 是否有阴影
     */
    shadow: {
      type: Boolean,
      default: true
    },
    /**
     * 导航中间显示的文字
     */
    title: {
      type: String
    },
    /**
     *  控制导航中input的显示与否
     */
    input: {
      type: Boolean,
      default: false
    },
    /**
     *  风格 取值 white || transparent
     */
    theme: {
      type: String,
      default: null
    },
    /**
     *  transform 的原点  取值  left || right
     */
    origin: {
      type: String,
      default: 'right'
    },
    /**
     *  placeholder的文字
     */
    placeholder: {
      type: String,
      default: '请输入...'
    },
    /**
     *  背景色
     */
    fillColor: {
      type: String,
      default: 'transparent'
    },
    /**
     *  header透明
     */
    headerTransparent: {
      type: Boolean,
      default: false
    },
    /**
     *  输入框的风格  dark || light
     */
    inputTheme: {
      type: String,
      default: 'light'
    },
    /**
     *  是否x显示border
     */
    border: {
      type: Boolean,
      default: true
    },
    /**
     * 是否开启截流
     */
    throttle: {
      type: Boolean,
      default: true
    },
    /**
     * 搜索框的值
     */
    value: {
      type: [String, Number],
      default: ''
    }
  },
  computed: {
    key: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  methods: {
    change: function change(val) {
      this.$emit('change', val);
    }
  },
  watch: {
    'input': function input() {
      var _this2 = this;

      if (this.input) {
        this.$nextTick(function () {
          _this2.$refs.input.focus();
        });
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-3886490e","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/header/index.vue
var header_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-header",class:[_vm.theme ? ("yt-header__" + _vm.theme) : '',{ 'is-shadow': _vm.shadow }],style:(_vm.headerTransparent ? 'background: transparent' : '')},[_c('transition',{attrs:{"name":"yt-fade"}},[(!_vm.input && !_vm.$slots.default)?_c('div',{staticClass:"yt-header-text",domProps:{"textContent":_vm._s(_vm.title)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"yt-header-wrapper"},[((_vm.leftData && _vm.leftData.length) || _vm.$slots.left)?_c('div',[_vm._t("left"),_vm._v(" "),_vm._l((_vm.leftData),function(item,index){return _c('header-btn',_vm._b({key:index},'header-btn',item,false))})],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"yt-header-center"},[_c('transition',{attrs:{"name":"yt-fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(!_vm.input && _vm.$slots.default),expression:"!input && $slots.default"}],staticClass:"yt-header-bar"},[_vm._t("default")],2)]),_vm._v(" "),_c('transition',{attrs:{"name":"yt-input-scale"}},[_c('yt-input',{directives:[{name:"show",rawName:"v-show",value:(_vm.input),expression:"input"}],ref:"input",staticClass:"yt-header-input",class:("is-origin-" + _vm.origin),attrs:{"align":"left","placeholder":_vm.placeholder,"fillColor":_vm.fillColor,"theme":_vm.inputTheme,"border":_vm.border,"throttle":_vm.throttle},on:{"change":_vm.change},model:{value:(_vm.key),callback:function ($$v) {_vm.key=$$v},expression:"key"}})],1)],1),_vm._v(" "),((_vm.rightData && _vm.rightData.length) || _vm.$slots.right)?_c('div',[_vm._t("right"),_vm._v(" "),_vm._l((_vm.rightData),function(item,index){return _c('header-btn',_vm._b({key:index},'header-btn',item,false))})],2):_vm._e()])],1)}
var header_staticRenderFns = []
var header_esExports = { render: header_render, staticRenderFns: header_staticRenderFns }
/* harmony default export */ var plugin_header = (header_esExports);
// CONCATENATED MODULE: ./src/common/plugin/header/index.vue
var header_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var header___vue_template_functional__ = false
/* styles */
var header___vue_styles__ = null
/* scopeId */
var header___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var header___vue_module_identifier__ = null
var header_Component = header_normalizeComponent(
  header,
  plugin_header,
  header___vue_template_functional__,
  header___vue_styles__,
  header___vue_scopeId__,
  header___vue_module_identifier__
)

/* harmony default export */ var common_plugin_header = (header_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/page/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var page = ({
  name: 'yt-page',
  props: {
    /**
     * 背景色
     */
    fillColor: {
      type: String,
      default: '#f3f4f6'
    },
    /**
     *  页面内容层是否采用flex布局 方向为column
     */
    flex: {
      type: Boolean,
      default: false
    },
    /**
     *  页面内容层是否可以滚动
     */
    scroll: {
      type: Boolean,
      default: false
    },
    /**
     * 控制弹出层页面的使用   该属性配合 slot=more一起使用
     */
    more: {
      type: Boolean,
      default: false
    },
    /**
     * @model
     * @description 搜索框的值
     */
    value: {
      type: [String, Number],
      default: ''
    },
    /**
     * 是否为absolute
     */
    absolute: {
      type: Boolean,
      default: false
    },
    /**
     * 是否显示header
     */
    header: {
      type: Boolean,
      default: true
    },
    /**
     * 弹出层more的top
     */
    moreTop: {
      type: String,
      default: null
    },
    /**
     * 弹出层more的right
     */
    moreRight: {
      type: String,
      default: null
    }
  },
  computed: {
    pageStyle: function pageStyle() {
      return {
        backgroundColor: this.fillColor
      };
    },
    moreStyle: function moreStyle() {
      return {
        top: this.moreTop,
        right: this.moreRight
      };
    },

    key: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        /**
         * @event input
         * @description 搜索文字变化事件
         * @type {string} 关键字
         */
        this.$emit('input', val);
      }
    },
    _more: {
      get: function get() {
        return this.more;
      },
      set: function set(val) {
        /**
         * @event update:more
         * @description关闭more层
         * @type {string} 关键字
         */
        this.$emit('update:more', val);
      }
    }
  },
  methods: {
    change: function change(key) {
      /**
       * @event change
       * @description 搜索文字变化事件 当截流开启时，该事件将截流派发
       * @type {string} 关键字
       */
      this.$emit('change', key);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-27d435c3","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/page/index.vue
var page_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-page",style:(_vm.pageStyle)},[(_vm.header)?_c('yt-header',_vm._b({staticClass:"yt-page-header",class:{'is-absolute': _vm.absolute},on:{"change":_vm.change},model:{value:(_vm.key),callback:function ($$v) {_vm.key=$$v},expression:"key"}},'yt-header',_vm.$attrs,false),[(_vm.$slots.title)?_vm._t("title"):_vm._e(),_vm._v(" "),(_vm.$slots.right)?_vm._t("right",null,{"slot":"right"}):_vm._e(),_vm._v(" "),(_vm.$slots.left)?_vm._t("left",null,{"slot":"left"}):_vm._e()],2):_vm._e(),_vm._v(" "),_c('div',{staticClass:"yt-page-container",class:{ 'is-scroll': _vm.scroll, 'is-flex': _vm.flex }},[_vm._t("default")],2),_vm._v(" "),_vm._t("alert"),_vm._v(" "),_c('transition',{attrs:{"name":"yt-fade"}},[(_vm._more)?_c('div',{staticClass:"yt-page-mask",on:{"click":function($event){_vm._more = false}}}):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":"yt-popup-scale"}},[(_vm._more)?_c('div',{staticClass:"yt-page-more",style:(_vm.moreStyle)},[_vm._t("more")],2):_vm._e()])],2)}
var page_staticRenderFns = []
var page_esExports = { render: page_render, staticRenderFns: page_staticRenderFns }
/* harmony default export */ var plugin_page = (page_esExports);
// CONCATENATED MODULE: ./src/common/plugin/page/index.vue
var page_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var page___vue_template_functional__ = false
/* styles */
var page___vue_styles__ = null
/* scopeId */
var page___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var page___vue_module_identifier__ = null
var page_Component = page_normalizeComponent(
  page,
  plugin_page,
  page___vue_template_functional__,
  page___vue_styles__,
  page___vue_scopeId__,
  page___vue_module_identifier__
)

/* harmony default export */ var common_plugin_page = (page_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/timeLine/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var timeLine = ({
  name: 'yt-timeLine',
  props: {
    /**
     * 数据列表 [{time, desc}]
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-12c8ad20","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/timeLine/index.vue
var timeLine_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-timeLine"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"yt-timeLine-wrapper"},[_c('span',{staticClass:"yt-timeLine-core",class:{'is-current': index === 0}}),_vm._v(" "),_c('div',{staticClass:"yt-timeLine-row"},[_vm._t("default",[_c('p',{staticClass:"yt-timeLine-desc"},[_vm._v(_vm._s(item.desc))]),_vm._v(" "),_c('p',{staticClass:"yt-timeLine-time"},[_vm._v(_vm._s(_vm._f("formatTime")(item.time)))])],null,item)],2)])}),0)}
var timeLine_staticRenderFns = []
var timeLine_esExports = { render: timeLine_render, staticRenderFns: timeLine_staticRenderFns }
/* harmony default export */ var plugin_timeLine = (timeLine_esExports);
// CONCATENATED MODULE: ./src/common/plugin/timeLine/index.vue
var timeLine_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var timeLine___vue_template_functional__ = false
/* styles */
var timeLine___vue_styles__ = null
/* scopeId */
var timeLine___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var timeLine___vue_module_identifier__ = null
var timeLine_Component = timeLine_normalizeComponent(
  timeLine,
  plugin_timeLine,
  timeLine___vue_template_functional__,
  timeLine___vue_styles__,
  timeLine___vue_scopeId__,
  timeLine___vue_module_identifier__
)

/* harmony default export */ var common_plugin_timeLine = (timeLine_Component.exports);

// EXTERNAL MODULE: ./src/common/plugin/utils/backStore.js
var backStore = __webpack_require__("xblt");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/popup/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var popup = ({
  name: 'yt-popup',
  props: {
    /**
     * @model
     * @description 控制弹出的显示 使用v-model进行双向绑定
     */
    value: {
      type: Boolean,
      default: false
    },
    /**
     * 弹出层的位置   具体的取值有 'top' || 'bottom' || 'left' || 'right' || 'center'
     */
    pos: {
      type: String,
      default: 'bottom'
    },
    /**
     * 是否为fixed定位
     */
    fixed: {
      type: Boolean,
      default: false
    },
    /**
     * 是否显示mask
     */
    mask: {
      type: Boolean,
      default: true
    },
    /**
     * popup的宽度 当pos为left和right的时候生效
     */
    width: {
      type: String,
      default: '70%'
    },
    /**
     * popup的高度  当pos为top和bottom的时候生效
     */
    height: {
      type: String,
      default: null
    },
    /**
     * 是否滚动
     */
    scroll: {
      type: Boolean,
      default: false
    },
    /**
     * popup 自身是否插入至 body 元素上。嵌套的 popup 必须指定该属性并赋值为 true
     */
    appendToBody: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    bodyStyle: function bodyStyle() {
      return {
        width: this.pos === 'left' || this.pos === 'right' ? this.width : null,
        height: this.pos === 'top' || this.pos === 'bottom' ? this.height : null
      };
    },

    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(value) {
        this.$emit('input', value);
      }
    },
    transitionName: function transitionName() {
      return 'yt-popup-' + this.pos;
    }
  },
  mounted: function mounted() {
    if (this.appendToBody) {
      document.body.appendChild(this.$el);
    }
  },
  destroyed: function destroyed() {
    if (this.appendToBody && this.$el && this.$el.parentNode) {
      this.$el.parentNode.removeChild(this.$el);
    }
  },

  watch: {
    value: {
      immediate: true,
      handler: function handler(val) {
        var _this = this;

        if (val) {
          backStore["a" /* backStore */].on(this, function () {
            return _this.currentValue = false;
          });
        } else {
          backStore["a" /* backStore */].off(this);
        }
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-30099c58","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/popup/index.vue
var popup_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-popup"},[_c('transition',{attrs:{"name":"yt-fade"}},[(_vm.currentValue && _vm.mask)?_c('div',{class:['yt-popup-mask', {'is-fixed': _vm.fixed}],on:{"click":function($event){_vm.currentValue = false}}}):_vm._e()]),_vm._v(" "),_c('transition',{attrs:{"name":_vm.transitionName}},[(_vm.currentValue)?_c('div',{staticClass:"yt-popup-body",class:[("is-" + _vm.pos), {'is-fixed': _vm.fixed}, {'is-scroll': _vm.scroll}],style:(_vm.bodyStyle)},[_vm._t("default")],2):_vm._e()])],1)}
var popup_staticRenderFns = []
var popup_esExports = { render: popup_render, staticRenderFns: popup_staticRenderFns }
/* harmony default export */ var plugin_popup = (popup_esExports);
// CONCATENATED MODULE: ./src/common/plugin/popup/index.vue
var popup_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var popup___vue_template_functional__ = false
/* styles */
var popup___vue_styles__ = null
/* scopeId */
var popup___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var popup___vue_module_identifier__ = null
var popup_Component = popup_normalizeComponent(
  popup,
  plugin_popup,
  popup___vue_template_functional__,
  popup___vue_styles__,
  popup___vue_scopeId__,
  popup___vue_module_identifier__
)

/* harmony default export */ var common_plugin_popup = (popup_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/screen/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var screen = ({
  name: 'yt-screen',

  provide: function provide() {
    return {
      ytScreen: this
    };
  },
  data: function data() {
    return {
      active: -1,
      panels: []
    };
  },


  methods: {
    /**
     * 新增screenPanel
     * @param child
     */
    appendPanel: function appendPanel(child) {
      var index = this.$slots.default.indexOf(child.$vnode);
      this.panels.splice(index, 1, child);
    },


    /**
     * 移除screenPanel
     * @param child
     */
    removePanel: function removePanel(child) {
      var index = this.panels.indexOf(child);
      if (index > -1) {
        this.panels.splice(index, 1);
      }
    },
    doScreen: function doScreen(index) {
      this.active = index === this.active ? -1 : index;
    },
    doClose: function doClose() {
      this.active = -1;
    }
  },
  watch: {
    'active': function active() {
      var _this = this;

      if (this.active === -1) {
        /**
         * @event close
         * @description screen关闭事件
         */
        this.$emit('close');
      }
      this.panels.forEach(function (panel, index) {
        if (index === _this.active) {
          panel.show = true;
        } else {
          panel.show = false;
        }
      });
      /**
       * @event change
       * @description screenPanel改变事件
       * @type {Number} panel的索引
       */
      this.$emit('change', this.active);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1c12a715","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/screen/index.vue
var screen_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-screen"},[_c('div',{staticClass:"yt-screen-header"},_vm._l((_vm.panels),function(panel,index){return _c('div',{key:index,staticClass:"yt-screen-item",class:{'is-active': _vm.active === index},on:{"click":function($event){return _vm.doScreen(index)}}},[_vm._v("\n      "+_vm._s(panel.label)),_c('i',{staticClass:"yt-screen-icon yt-icon yt-icon-down",class:{'is-active': _vm.active === index}})])}),0),_vm._v(" "),_c('transition',{attrs:{"name":"yt-fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active > -1),expression:"active > -1"}],staticClass:"yt-screen-mask",on:{"click":_vm.doClose}})]),_vm._v(" "),_c('transition',{attrs:{"name":"yt-slider-top"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active > -1),expression:"active > -1"}],staticClass:"yt-screen-panels"},[_vm._t("default")],2)])],1)}
var screen_staticRenderFns = []
var screen_esExports = { render: screen_render, staticRenderFns: screen_staticRenderFns }
/* harmony default export */ var plugin_screen = (screen_esExports);
// CONCATENATED MODULE: ./src/common/plugin/screen/index.vue
var screen_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var screen___vue_template_functional__ = false
/* styles */
var screen___vue_styles__ = null
/* scopeId */
var screen___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var screen___vue_module_identifier__ = null
var screen_Component = screen_normalizeComponent(
  screen,
  plugin_screen,
  screen___vue_template_functional__,
  screen___vue_styles__,
  screen___vue_scopeId__,
  screen___vue_module_identifier__
)

/* harmony default export */ var common_plugin_screen = (screen_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/screen/screenPanel.vue
//
//
//
//
//
//

/* harmony default export */ var screenPanel = ({
  name: 'yt-screenPanel',
  inject: {
    ytScreen: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * screenPanel的label值
     */
    label: {
      type: String
    }
  },
  data: function data() {
    return {
      show: false
    };
  },
  mounted: function mounted() {
    this.ytScreen && this.ytScreen.appendPanel(this);
  },
  destroyed: function destroyed() {
    this.ytScreen && this.ytScreen.removePanel(this);
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-bc263afc","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/screen/screenPanel.vue
var screenPanel_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-screen-panel"},[_vm._t("default")],2)}
var screenPanel_staticRenderFns = []
var screenPanel_esExports = { render: screenPanel_render, staticRenderFns: screenPanel_staticRenderFns }
/* harmony default export */ var screen_screenPanel = (screenPanel_esExports);
// CONCATENATED MODULE: ./src/common/plugin/screen/screenPanel.vue
var screenPanel_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var screenPanel___vue_template_functional__ = false
/* styles */
var screenPanel___vue_styles__ = null
/* scopeId */
var screenPanel___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var screenPanel___vue_module_identifier__ = null
var screenPanel_Component = screenPanel_normalizeComponent(
  screenPanel,
  screen_screenPanel,
  screenPanel___vue_template_functional__,
  screenPanel___vue_styles__,
  screenPanel___vue_scopeId__,
  screenPanel___vue_module_identifier__
)

/* harmony default export */ var plugin_screen_screenPanel = (screenPanel_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/cellSwipe/index.vue


//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



var TRANSITION = 'transition: all .2s ease;';
/* harmony default export */ var cellSwipe = ({
  name: 'yt-cellSwipe',
  directives: { clickoutside: utils["f" /* clickoutside */] },
  props: {
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * 当前行的数据 点击事件会回传
     */
    data: {
      type: [String, Number, Object, Array]
    },
    /**
     * 右侧的btn集合
     *  [{ text, confirmText, type, click, confirm }]
     *  type 可取值为 red || blue || green || yellow || gray
     */
    items: {
      type: Array,
      default: function _default() {
        return [];
      }
    }
  },
  data: function data() {
    return {
      X: 0,
      currentIndex: -1
    };
  },

  computed: {
    wrapClassName: function wrapClassName() {
      if (this.currentIndex === -1) return '';
      var item = this.items[this.currentIndex];
      return item.type ? 'is-' + item.type : '';
    }
  },
  methods: {
    getClassName: function getClassName(item, index) {
      var type = item.type || 'red';
      var hide = this.currentIndex !== -1 && this.currentIndex !== index;
      var show = item.confirm && this.currentIndex === index;
      return ['yt-swipeCell-button', 'is-' + type, { 'is-hide': hide }, { 'is-confirm': show }];
    },
    _move: function _move(e) {
      this._setMoveCell(e.deltaMoveX);
    },
    _end: function _end(e) {
      if (e.direction === utils["a" /* PackingEvent */].LEFT()) {
        this._setMoveCell(-this.$refs.right.offsetWidth, true);
      } else {
        this._setMoveCell(this.$refs.right.offsetWidth, true);
      }
    },
    _setMoveCell: function _setMoveCell(x, isTransition) {
      var right = this.$refs.right;
      var center = this.$refs.center;
      x = this.X + x;
      if (x < -right.offsetWidth) {
        x = -right.offsetWidth;
      } else if (x > 0) {
        x = 0;
      }
      right.style = 'right: ' + -x + 'px;' + (isTransition ? TRANSITION : '');
      center.style = 'transform: translate3d(' + x + 'px, 0, 0);' + (isTransition ? TRANSITION : '');
      this.X = x;
    },

    /**
     * @public
     * @description 手动关闭swipe
     * @return {Promise<void>}
     */
    close: function close() {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _this._setMoveCell(_this.$refs.right.offsetWidth, true);
                _context.next = 3;
                return Object(utils["g" /* delayed */])(200);

              case 3:
                _this.currentIndex = -1;

              case 4:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    },
    handler: function handler(e, item, index) {
      var _this2 = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
        var el, oldWidth;
        return regenerator_default.a.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                if (!item.confirm) {
                  _context2.next = 13;
                  break;
                }

                if (!(_this2.currentIndex === index)) {
                  _context2.next = 7;
                  break;
                }

                _context2.next = 4;
                return _this2.close();

              case 4:
                item.confirm(_this2.data);
                _context2.next = 11;
                break;

              case 7:
                _this2.currentIndex = index;
                el = _this2.$refs.right;
                oldWidth = el.offsetWidth;

                _this2.$nextTick(function () {
                  _this2._setMoveCell(oldWidth - el.offsetWidth, true);
                });

              case 11:
                _context2.next = 16;
                break;

              case 13:
                _context2.next = 15;
                return _this2.close();

              case 15:
                if (item && item.click) {
                  item.click(_this2.data);
                }

              case 16:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, _this2);
      }))();
    }
  },
  mounted: function mounted() {
    this.packingEvent = new utils["a" /* PackingEvent */]({
      el: this.$refs.wrapper,
      disabled: this.disabled,
      direction: utils["a" /* PackingEvent */].HORIZONTAL(),
      move: this._move,
      end: this._end
    });
  },

  watch: {
    'disabled': function disabled(val) {
      this.packingEvent.setDisabled(val);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-3bea4244","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/cellSwipe/index.vue
var cellSwipe_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside:touchstart",value:(_vm.close),expression:"close",arg:"touchstart"}],ref:"wrapper",staticClass:"yt-swipeCell",class:_vm.wrapClassName},[_c('div',{ref:"center",staticClass:"yt-swipeCell-center"},[_vm._t("default")],2),_vm._v(" "),_c('div',{ref:"right",staticClass:"yt-swipeCell-buttons",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.close($event)}}},[_vm._t("right",_vm._l((_vm.items),function(item,index){return _c('div',{key:index,class:_vm.getClassName(item, index),on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.handler($event, item, index)}}},[_vm._v("\n        "+_vm._s((item.confirm && _vm.currentIndex === index) ? item.confirmText : item.text)+"\n      ")])}))],2)])}
var cellSwipe_staticRenderFns = []
var cellSwipe_esExports = { render: cellSwipe_render, staticRenderFns: cellSwipe_staticRenderFns }
/* harmony default export */ var plugin_cellSwipe = (cellSwipe_esExports);
// CONCATENATED MODULE: ./src/common/plugin/cellSwipe/index.vue
var cellSwipe_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var cellSwipe___vue_template_functional__ = false
/* styles */
var cellSwipe___vue_styles__ = null
/* scopeId */
var cellSwipe___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var cellSwipe___vue_module_identifier__ = null
var cellSwipe_Component = cellSwipe_normalizeComponent(
  cellSwipe,
  plugin_cellSwipe,
  cellSwipe___vue_template_functional__,
  cellSwipe___vue_styles__,
  cellSwipe___vue_scopeId__,
  cellSwipe___vue_module_identifier__
)

/* harmony default export */ var common_plugin_cellSwipe = (cellSwipe_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabbar/tabbarItem.vue
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var tabbarItem = ({
  name: 'yt-tabbar-item',
  props: {
    panel: {},
    active: {
      type: Boolean
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      this.$emit('click', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-a73c57f4","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabbar/tabbarItem.vue
var tabbarItem_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-tabbar-item",class:{'is-active': _vm.active},on:{"click":_vm.handlerClick}},[_c('span',{staticClass:"yt-tabbar-core"},[(_vm.panel && _vm.panel.font)?_c('i',{staticClass:"yt-tabbar-icon",class:_vm.panel.font}):_vm._e(),_vm._v(" "),(_vm.panel && _vm.panel.src)?_c('img',{staticClass:"yt-tabbar-img",attrs:{"src":_vm.panel.src}}):_vm._e(),_vm._v(" "),(_vm.panel && _vm.panel.text)?_c('p',{staticClass:"yt-tabbar-text"},[_vm._v(_vm._s(_vm.panel.text))]):_vm._e(),_vm._v(" "),(_vm.panel && _vm.panel.badge)?_c('yt-badge',_vm._b({staticClass:"yt-tabbar-badge"},'yt-badge',_vm.panel.badge,false)):_vm._e()],1)])}
var tabbarItem_staticRenderFns = []
var tabbarItem_esExports = { render: tabbarItem_render, staticRenderFns: tabbarItem_staticRenderFns }
/* harmony default export */ var tabbar_tabbarItem = (tabbarItem_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabbar/tabbarItem.vue
var tabbarItem_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabbarItem___vue_template_functional__ = false
/* styles */
var tabbarItem___vue_styles__ = null
/* scopeId */
var tabbarItem___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabbarItem___vue_module_identifier__ = null
var tabbarItem_Component = tabbarItem_normalizeComponent(
  tabbarItem,
  tabbar_tabbarItem,
  tabbarItem___vue_template_functional__,
  tabbarItem___vue_styles__,
  tabbarItem___vue_scopeId__,
  tabbarItem___vue_module_identifier__
)

/* harmony default export */ var plugin_tabbar_tabbarItem = (tabbarItem_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabbar/index.vue



var TabbarQuick = 'yt-tabbar-quick';
var TabbarPanel = 'yt-tabbar-panel';
/* harmony default export */ var tabbar = ({
  name: 'yt-tabbar',
  provide: function provide() {
    return {
      ytTabbar: this
    };
  },

  props: {
    /**
     * 当前tab的索引
     */
    value: {
      required: true,
      type: Number,
      default: 0
    },
    /**
     * 是否可以左右滑动
     */
    slider: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    active: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  components: { tabbarItem: plugin_tabbar_tabbarItem },
  data: function data() {
    return {
      panels: []
    };
  },
  render: function render(h) {
    var panels = this.renderPanel(h);
    var header = this.renderHeader(h);
    return h('div', { attrs: { class: 'yt-tabbar' } }, [panels, header]);
  },

  methods: {
    getNodesByTag: function getNodesByTag(tag) {
      if (!this.$slots.default) return [];
      return this.$slots.default.filter(function (item) {
        return item.componentOptions && item.componentOptions.tag === tag;
      });
    },

    /**
     * 新增tab
     * @param child  tabbar-panel组件的this
     * @return {void}
     * @public
     */
    appendPanel: function appendPanel(child) {
      var index = this.$slots.default.indexOf(child.$vnode);
      this.panels.splice(index, 1, child);
    },

    /**
     * 移除tab
     * @param child tabbar-panel组件的this
     * @return {void} 返回空
     * @public
     */
    removePanel: function removePanel(child) {
      var index = this.panels.indexOf(child);
      if (index > -1) this.panels.splice(index, 1);
    },

    /**
     * 获取panel的node
     * @param h
     * @return {vNode}
     */
    renderPanel: function renderPanel(h) {
      var _this = this;

      return h('yt-tab-panles', {
        attrs: { class: 'yt-tabbar-container' },
        props: { value: this.active, panels: this.panels, slider: this.slider },
        on: { input: function input(val) {
            return _this.active = val;
          } }
      }, this.getNodesByTag(TabbarPanel));
    },

    /**
     * 获取header的node
     * @param h
     * @return {vNode}
     */
    renderHeader: function renderHeader(h) {
      var _this2 = this;

      var children = this.panels.map(function (panel, index) {
        return h('tabbar-item', {
          props: { panel: panel, active: index === _this2.active },
          on: {
            click: function click() {
              _this2.active = index;
              /**
               * @event tab-click
               * @description tab的点击事件
               * @type {active}
               */
              _this2.$emit('tab-click', index);
            }
          }
        });
      });
      var quick = this.getNodesByTag(TabbarQuick);
      if (quick && quick.length) {
        quick = quick[0];
        var index = quick.componentOptions.propsData.index || Math.floor(children.length / 2);
        children.splice(index, 0, quick);
      }
      return h('div', { attrs: { class: 'yt-tabbar-header' } }, children);
    }
  },
  watch: {
    'active': function active(val, oldVal) {
      /**
       * @event change
       * @description tab页改变时
       * @type {val}
       */
      this.$emit('change', val, oldVal);
    }
  }
});
// CONCATENATED MODULE: ./src/common/plugin/tabbar/index.vue
var tabbar_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */
var __vue_template__ = null
/* template functional */
var tabbar___vue_template_functional__ = false
/* styles */
var tabbar___vue_styles__ = null
/* scopeId */
var tabbar___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabbar___vue_module_identifier__ = null
var tabbar_Component = tabbar_normalizeComponent(
  tabbar,
  __vue_template__,
  tabbar___vue_template_functional__,
  tabbar___vue_styles__,
  tabbar___vue_scopeId__,
  tabbar___vue_module_identifier__
)

/* harmony default export */ var plugin_tabbar = (tabbar_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabbar/tabbarPanel.vue
//
//
//
//
//
//
//

/* harmony default export */ var tabbarPanel = ({
  name: 'yt-tabbar-panel',
  inject: {
    ytTabbar: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * tabbar上item的文字
     */
    text: {
      type: String,
      default: ''
    },
    /**
     * tabbar上item的字体class
     */
    font: {
      type: String,
      default: ''
    },
    /**
     * tabbar上item的图片的路径
     */
    src: {
      type: String,
      default: ''
    },
    /**
     * tabbar上item选中时候的图片路径
     */
    activeSrc: {
      type: String,
      default: ''
    },
    /**
     * tabbar上item上的角标
     */
    badge: {
      type: Object
    }
  },
  mounted: function mounted() {
    this.ytTabbar && this.ytTabbar.appendPanel(this);
  },
  destroyed: function destroyed() {
    this.ytTabbar && this.ytTabbar.removePanel(this);
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5b48c7f0","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabbar/tabbarPanel.vue
var tabbarPanel_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-tabbar-panel"},[_vm._t("default")],2)}
var tabbarPanel_staticRenderFns = []
var tabbarPanel_esExports = { render: tabbarPanel_render, staticRenderFns: tabbarPanel_staticRenderFns }
/* harmony default export */ var tabbar_tabbarPanel = (tabbarPanel_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabbar/tabbarPanel.vue
var tabbarPanel_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabbarPanel___vue_template_functional__ = false
/* styles */
var tabbarPanel___vue_styles__ = null
/* scopeId */
var tabbarPanel___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabbarPanel___vue_module_identifier__ = null
var tabbarPanel_Component = tabbarPanel_normalizeComponent(
  tabbarPanel,
  tabbar_tabbarPanel,
  tabbarPanel___vue_template_functional__,
  tabbarPanel___vue_styles__,
  tabbarPanel___vue_scopeId__,
  tabbarPanel___vue_module_identifier__
)

/* harmony default export */ var plugin_tabbar_tabbarPanel = (tabbarPanel_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabbar/tabbarQuick.vue
//
//
//
//
//
//
//
//
//

/* harmony default export */ var tabbarQuick = ({
  name: 'yt-tabbar-quick',
  props: {
    /**
     * 快捷键插入的位置
     */
    index: {
      type: Number
    }
  },
  methods: {
    doClick: function doClick(e) {
      /**
       * @event click
       * @description 点击事件
       * @type {event}
       */
      this.$emit('click', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-486b6d5b","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabbar/tabbarQuick.vue
var tabbarQuick_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-tabbar-quick",on:{"click":_vm.doClick}},[_vm._t("default",[_c('i',{staticClass:"yt-tabbar-quickAdd yt-icon yt-icon-increase"})])],2)}
var tabbarQuick_staticRenderFns = []
var tabbarQuick_esExports = { render: tabbarQuick_render, staticRenderFns: tabbarQuick_staticRenderFns }
/* harmony default export */ var tabbar_tabbarQuick = (tabbarQuick_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabbar/tabbarQuick.vue
var tabbarQuick_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabbarQuick___vue_template_functional__ = false
/* styles */
var tabbarQuick___vue_styles__ = null
/* scopeId */
var tabbarQuick___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabbarQuick___vue_module_identifier__ = null
var tabbarQuick_Component = tabbarQuick_normalizeComponent(
  tabbarQuick,
  tabbar_tabbarQuick,
  tabbarQuick___vue_template_functional__,
  tabbarQuick___vue_styles__,
  tabbarQuick___vue_scopeId__,
  tabbarQuick___vue_module_identifier__
)

/* harmony default export */ var plugin_tabbar_tabbarQuick = (tabbarQuick_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabPanles/index.vue
//
//
//
//
//



var tabPanles_TRANSITION = 'transition: transform .3s ease;';
var POS_LEFT = 'transform: translate3d(-100%, 0, 0);';
var POS_CENTER = 'transform: translate3d(0, 0, 0);';
var POS_RIGHT = 'transform: translate3d(100%, 0, 0);';
/* harmony default export */ var tabPanles = ({
  props: {
    slider: {
      type: Boolean,
      default: true
    },
    value: {},
    panels: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    listen: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    active: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  mounted: function mounted() {
    this.packingEvent = new utils["a" /* PackingEvent */]({
      el: this.$el,
      disabled: !this.slider,
      direction: utils["a" /* PackingEvent */].HORIZONTAL(),
      move: this._move,
      end: this._end
    });
    this._setPanelPos(this.active, null);
  },

  methods: {
    _end: function _end(e) {
      if (Math.abs(e.moveX) > 70) {
        this.active = e.moveX > 0 ? Math.max(this.active - 1, 0) : Math.min(this.active + 1, this.panels.length - 1);
      } else {
        this._resetPos(e.moveX);
        this.$emit('reset');
      }
    },
    _move: function _move(e) {
      var x = e.deltaX;
      if (this.panels.length === 0 || this.active < 0 || this.active >= this.panels.length) return;
      var nextIndex = x < 0 ? Math.min(this.active + 1, this.panels.length - 1) : Math.max(this.active - 1, 0);
      if (nextIndex === this.active) return;
      var panel = this.panels[this.active].$el;
      var nextPanel = this.panels[nextIndex].$el;
      var percent = this._movePercent(this.active, x);
      var nextPercent = this._movePercent(nextIndex, x) + (x < 0 ? 100 : -100);
      panel.style = 'transform: translate3d(' + percent + '%, 0, 0)';
      nextPanel.style = 'transform: translate3d(' + nextPercent + '%, 0, 0)';
      if (this.listen) {
        this.$emit('move', percent);
      }
    },
    _resetPos: function _resetPos(delta) {
      if (delta === 0) return;
      var _moveIndex = delta < 0 ? Math.min(this.active + 1, this.panels.length - 1) : Math.max(this.active - 1, 0);
      if (_moveIndex === this.active) return;
      var panel = this.panels[this.active].$el;
      var nextPanel = this.panels[_moveIndex].$el;
      panel.style = 'transform: translate3d(0, 0, 0); ' + tabPanles_TRANSITION;
      nextPanel.style = 'transform: translate3d(' + (_moveIndex > this.active ? 100 : -100) + '%, 0, 0); ' + tabPanles_TRANSITION;
    },
    _movePercent: function _movePercent(page, delta) {
      return delta * 100 / this.panels[page].$el.offsetWidth;
    },
    _setPanelPos: function _setPanelPos(val, oldVal) {
      if (this.panels.length === 0) return;
      if (val < 0 || val >= this.panels.length) {
        val = 0;
      }
      this.panels.forEach(function (panel, index) {
        var style = '';
        if (index === val) {
          style = POS_CENTER + tabPanles_TRANSITION;
        } else if (index === oldVal) {
          style = tabPanles_TRANSITION + (val - oldVal > 0 ? POS_LEFT : POS_RIGHT);
        } else {
          style = index - val > 0 ? POS_RIGHT : POS_LEFT;
        }
        panel.$el.setAttribute('style', style);
      });
    }
  },
  watch: {
    'active': function active(val, oldVal) {
      this._setPanelPos(val, oldVal);
    },
    'panels': function panels(val) {
      this.active = Math.min(val.length - 1, this.active);
      this._setPanelPos(this.active, null);
    },
    'slider': function slider(val) {
      this.packingEvent.setDisabled(!val);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-2f5f7c8f","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabPanles/index.vue
var tabPanles_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._t("default")],2)}
var tabPanles_staticRenderFns = []
var tabPanles_esExports = { render: tabPanles_render, staticRenderFns: tabPanles_staticRenderFns }
/* harmony default export */ var plugin_tabPanles = (tabPanles_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabPanles/index.vue
var tabPanles_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabPanles___vue_template_functional__ = false
/* styles */
var tabPanles___vue_styles__ = null
/* scopeId */
var tabPanles___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabPanles___vue_module_identifier__ = null
var tabPanles_Component = tabPanles_normalizeComponent(
  tabPanles,
  plugin_tabPanles,
  tabPanles___vue_template_functional__,
  tabPanles___vue_styles__,
  tabPanles___vue_scopeId__,
  tabPanles___vue_module_identifier__
)

/* harmony default export */ var common_plugin_tabPanles = (tabPanles_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabs/tabItem.vue
//
//
//
//
//
//
//
//

/* harmony default export */ var tabItem = ({
  name: 'yt-tab-item',
  inject: {
    ytTabs: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    panel: {},
    /**
     * 当前item是否选中
     */
    active: {
      type: Boolean
    }
  },
  methods: {
    handlerClick: function handlerClick(e) {
      /**
       * @event click
       * @description 点击事件
       * @type {event}
       */
      this.$emit('click', e);
    }
  },
  mounted: function mounted() {
    this.ytTabs && this.ytTabs.appendTab(this);
  },
  destroyed: function destroyed() {
    this.ytTabs && this.ytTabs.removeTab(this);
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5ec0538a","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabs/tabItem.vue
var tabItem_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-view',{staticClass:"yt-tabs-item",class:{'is-active': _vm.active},on:{"click":_vm.handlerClick}},[(_vm.panel && _vm.panel.text)?_c('p',{staticClass:"yt-tabs-text"},[_vm._v("\n    "+_vm._s(_vm.panel.text)+"\n    "),(_vm.panel && _vm.panel.badge)?_c('yt-badge',_vm._b({staticClass:"yt-tabs-badge"},'yt-badge',_vm.panel.badge,false)):_vm._e()],1):_vm._e()])}
var tabItem_staticRenderFns = []
var tabItem_esExports = { render: tabItem_render, staticRenderFns: tabItem_staticRenderFns }
/* harmony default export */ var tabs_tabItem = (tabItem_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabs/tabItem.vue
var tabItem_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabItem___vue_template_functional__ = false
/* styles */
var tabItem___vue_styles__ = null
/* scopeId */
var tabItem___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabItem___vue_module_identifier__ = null
var tabItem_Component = tabItem_normalizeComponent(
  tabItem,
  tabs_tabItem,
  tabItem___vue_template_functional__,
  tabItem___vue_styles__,
  tabItem___vue_scopeId__,
  tabItem___vue_module_identifier__
)

/* harmony default export */ var plugin_tabs_tabItem = (tabItem_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabs/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var tabs = ({
  name: 'yt-tabs',
  provide: function provide() {
    return {
      ytTabs: this
    };
  },

  components: { tabItem: plugin_tabs_tabItem },
  props: {
    /**
     * 当前tab的索引
     */
    value: {
      type: Number,
      default: 0
    },
    /**
     * 是否禁用slider
     */
    slider: {
      type: Boolean,
      default: true
    }
  },
  computed: {
    active: {
      get: function get(val) {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  data: function data() {
    return {
      panels: [],
      tabItems: []
    };
  },

  methods: {
    _resetLine: function _resetLine() {
      var line = this.$refs.line;
      if (!line) return;
      var el = this.tabItems[this.active].$el;
      var left = el.offsetLeft;
      var width = el.offsetWidth;
      line.setAttribute('style', 'left: ' + left + 'px; width: ' + width + 'px;');
    },
    _moveLine: function _moveLine(percent) {
      var line = this.$refs.line;
      var len = this.tabItems.length;
      if (!line || len === 0 || this.active < 0 || this.active >= this.panels.length) return;
      var el = this.tabItems[this.active].$el;
      var nextIndex = percent < 0 ? Math.min(this.active + 1, this.tabItems.length - 1) : Math.max(this.active - 1, 0);
      if (nextIndex === this.active) return;
      var nextEl = this.tabItems[nextIndex].$el;
      var left = el.offsetLeft;
      var width = el.offsetWidth;
      var nextLeft = nextEl.offsetLeft;
      var nextWidth = nextEl.offsetWidth;
      var deltaLeft = (nextLeft - left) * percent / 100;
      var deltaWidth = (nextWidth - width) * percent / 100;
      left = percent < 0 ? left - deltaLeft : left + deltaLeft;
      width = percent < 0 ? width - deltaWidth : width + deltaWidth;
      line.setAttribute('style', 'left: ' + left + 'px;width: ' + width + 'px;');
    },
    _handler: function _handler() {
      var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.active;

      var len = this.tabItems.length;
      if (len === 0) return;
      val = val < 0 ? 0 : val;
      val = val >= len ? len - 1 : val;
      var el = this.tabItems[val].$el;
      if (val !== len - 1) {
        this._scrollHeader(el);
      }
      this._scrollLine(el);
    },
    _scrollLine: function _scrollLine(el) {
      var line = this.$refs.line;
      var left = el.offsetLeft;
      var width = el.offsetWidth;
      if (line) {
        line.style = 'left: ' + left + 'px; width: ' + width + 'px;';
      }
    },
    _scrollHeader: function _scrollHeader(el) {
      var header = this.$refs.header;
      var rect = el.getBoundingClientRect();
      var move = window.innerWidth / 2 - (rect.x + rect.width / 2);
      if (header) {
        this._setScroll(header, header.scrollLeft, -move, 'scrollLeft');
      }
    },


    /**
     * 设置滚动样式
     * @private
     */
    _setScroll: function _setScroll(el, start, move) {
      var direction = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'scrollLeft';

      var count = 0;
      var step = function step() {
        var scrollDuration = 15;
        el[direction] += move / scrollDuration;
        if (++count < scrollDuration) {
          Object(utils["t" /* requestAnimationFrame */])(step);
        }
      };
      Object(utils["t" /* requestAnimationFrame */])(step);
    },


    /**
     * 新增tab
     * @param child  tabbar-panel组件的this
     * @return {void}
     * @public
     */
    appendPanel: function appendPanel(child) {
      var index = this.$slots.default.indexOf(child.$vnode);
      this.panels.splice(index, 1, child);
    },


    /**
     * 移除tab
     * @param child tabbar-panel组件的this
     * @return {void} 返回空
     * @public
     */
    removePanel: function removePanel(child) {
      var index = this.panels.indexOf(child);
      if (index > -1) {
        this.panels.splice(index, 1);
      }
    },
    appendTab: function appendTab(child) {
      this.tabItems.push(child);
    },
    removeTab: function removeTab(child) {
      var index = this.tabItems.indexOf(child);
      if (index > -1) {
        this.tabItems.splice(index, 1);
      }
    }
  },
  watch: {
    active: function active(val, oldVal) {
      this._handler();
    },
    tabItems: function tabItems() {
      this._handler();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-6e1abd1c","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabs/index.vue
var tabs_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-tabs"},[_c('div',{ref:"header",staticClass:"yt-tabs-header"},[_vm._l((_vm.panels),function(panel,index){return _c('tab-item',{key:index,attrs:{"panel":panel,"active":_vm.active === index},on:{"click":function($event){_vm.active = index}}})}),_vm._v(" "),_c('div',{ref:"line",staticClass:"yt-tabs-line"})],2),_vm._v(" "),_c('yt-tab-panles',{staticClass:"yt-tabs-container",attrs:{"panels":_vm.panels,"slider":_vm.slider,"listen":""},on:{"move":_vm._moveLine,"reset":_vm._resetLine},model:{value:(_vm.active),callback:function ($$v) {_vm.active=$$v},expression:"active"}},[_vm._t("default")],2)],1)}
var tabs_staticRenderFns = []
var tabs_esExports = { render: tabs_render, staticRenderFns: tabs_staticRenderFns }
/* harmony default export */ var plugin_tabs = (tabs_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabs/index.vue
var tabs_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabs___vue_template_functional__ = false
/* styles */
var tabs___vue_styles__ = null
/* scopeId */
var tabs___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabs___vue_module_identifier__ = null
var tabs_Component = tabs_normalizeComponent(
  tabs,
  plugin_tabs,
  tabs___vue_template_functional__,
  tabs___vue_styles__,
  tabs___vue_scopeId__,
  tabs___vue_module_identifier__
)

/* harmony default export */ var common_plugin_tabs = (tabs_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/tabs/tabPanel.vue
//
//
//
//
//
//
//

/* harmony default export */ var tabPanel = ({
  name: 'yt-tab-panel',
  inject: {
    ytTabs: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * tabItem的文字
     */
    text: {
      type: String,
      default: ''
    },
    /**
     * tabItem中的角标
     */
    badge: {
      type: Object,
      default: null
    },
    /**
     * 是否超出滚动
     */
    scroll: {
      type: Boolean,
      default: false
    }
  },
  mounted: function mounted() {
    this.ytTabs && this.ytTabs.appendPanel(this);
  },
  destroyed: function destroyed() {
    this.ytTabs && this.ytTabs.removePanel(this);
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-45ec02c5","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/tabs/tabPanel.vue
var tabPanel_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-tabs-panel",class:{'is-scroll': _vm.scroll}},[_vm._t("default")],2)}
var tabPanel_staticRenderFns = []
var tabPanel_esExports = { render: tabPanel_render, staticRenderFns: tabPanel_staticRenderFns }
/* harmony default export */ var tabs_tabPanel = (tabPanel_esExports);
// CONCATENATED MODULE: ./src/common/plugin/tabs/tabPanel.vue
var tabPanel_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var tabPanel___vue_template_functional__ = false
/* styles */
var tabPanel___vue_styles__ = null
/* scopeId */
var tabPanel___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var tabPanel___vue_module_identifier__ = null
var tabPanel_Component = tabPanel_normalizeComponent(
  tabPanel,
  tabs_tabPanel,
  tabPanel___vue_template_functional__,
  tabPanel___vue_styles__,
  tabPanel___vue_scopeId__,
  tabPanel___vue_module_identifier__
)

/* harmony default export */ var plugin_tabs_tabPanel = (tabPanel_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/checkList/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var checkList = ({
  name: 'yt-checkList',
  props: {
    /**
     *  最多选择多少个
     */
    max: Number,
    /**
     *  checkList 的小标题
     */
    title: String,
    /**
     *  控制check按钮在左侧还是在右侧   可取值 'left' || 'right'
     */
    pos: {
      type: String,
      default: 'left'
    },
    /**
     *  checkBox样式是否为简单类型
     */
    simple: {
      type: Boolean,
      default: false
    },
    /**
     *  checkBox样式是否为简单类型
     */
    inline: {
      type: Boolean,
      default: false
    },
    /**
     *  用于绑定input中的value   例如每一项为item  则item[val] 即为我们选中的值
     */
    val: {
      type: String,
      default: 'value'
    },
    /**
     *  用于显示的文字  例如每一项为item  则item[label] 即为显示的文字
     */
    label: {
      type: String,
      default: 'label'
    },
    /**
     *  数据列表
     */
    list: {
      type: Array,
      required: true
    },
    /**
     *  选中的列表
     */
    value: Array
  },
  computed: {
    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        if (this.max === 1 && val.length > 1) val.shift();
        if (this.max > 1 && val.length > this.max) val.pop();
        this.$emit('input', val);
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-f7e742f2","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/checkList/index.vue
var checkList_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-checkList",class:{ 'is-limit': _vm.max > 1 && _vm.max <= _vm.currentValue.length },on:{"change":function($event){return _vm.$emit('change', _vm.currentValue)}}},[_vm._t("title",[(_vm.title)?_c('div',{staticClass:"yt-checkList-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"yt-checkList-wrapper"},_vm._l((_vm.list),function(option,index){return _c('yt-checkBox',{key:index,attrs:{"pos":_vm.pos,"simple":_vm.simple,"inline":_vm.inline,"disabled":option.disabled,"name":_vm._f("securityGetVal")(option,_vm.val) || option},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v},expression:"currentValue"}},[_vm._t("default",[_vm._v(_vm._s(_vm._f("securityGetVal")(option,_vm.label)))],null,option)],2)}),1)],2)}
var checkList_staticRenderFns = []
var checkList_esExports = { render: checkList_render, staticRenderFns: checkList_staticRenderFns }
/* harmony default export */ var plugin_checkList = (checkList_esExports);
// CONCATENATED MODULE: ./src/common/plugin/checkList/index.vue
var checkList_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var checkList___vue_template_functional__ = false
/* styles */
var checkList___vue_styles__ = null
/* scopeId */
var checkList___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var checkList___vue_module_identifier__ = null
var checkList_Component = checkList_normalizeComponent(
  checkList,
  plugin_checkList,
  checkList___vue_template_functional__,
  checkList___vue_styles__,
  checkList___vue_scopeId__,
  checkList___vue_module_identifier__
)

/* harmony default export */ var common_plugin_checkList = (checkList_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/radioList/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var radioList = ({
  name: 'yt-radioList',
  props: {
    /**
     *  radioList 的小标题
     */
    title: String,
    /**
     *  控制radio按钮在左侧还是在右侧   可取值 'left' || 'right'
     */
    pos: {
      type: String,
      default: 'left'
    },
    /**
     *  radio 是否为inline
     */
    inline: {
      type: Boolean,
      default: true
    },
    /**
     *  用于绑定input中的value   例如每一项为item  则item[val] 即为我们选中的值
     */
    val: {
      type: String,
      default: 'value'
    },
    /**
     *  用于显示的文字  例如每一项为item  则item[label] 即为显示的文字
     */
    label: {
      type: String,
      default: 'label'
    },
    /**
     *  数据列表
     */
    list: {
      type: Array,
      required: true
    },
    /**
     *  选中的列表
     */
    value: {}
  },
  computed: {
    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-25772426","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/radioList/index.vue
var radioList_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-radioList",on:{"change":function($event){return _vm.$emit('change', _vm.currentValue)}}},[_vm._t("title",[(_vm.title)?_c('div',{staticClass:"yt-radioList-title"},[_vm._v(_vm._s(_vm.title)+"\n    ")]):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"yt-radioList-wrapper"},_vm._l((_vm.list),function(option,index){return _c('yt-radio',{key:index,attrs:{"disabled":option.disabled,"name":option[_vm.val] === undefined ? option : option[_vm.val],"pos":_vm.pos,"inline":_vm.inline},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v},expression:"currentValue"}},[_vm._t("default",[_vm._v(_vm._s(option[_vm.label]))],null,option)],2)}),1)],2)}
var radioList_staticRenderFns = []
var radioList_esExports = { render: radioList_render, staticRenderFns: radioList_staticRenderFns }
/* harmony default export */ var plugin_radioList = (radioList_esExports);
// CONCATENATED MODULE: ./src/common/plugin/radioList/index.vue
var radioList_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var radioList___vue_template_functional__ = false
/* styles */
var radioList___vue_styles__ = null
/* scopeId */
var radioList___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var radioList___vue_module_identifier__ = null
var radioList_Component = radioList_normalizeComponent(
  radioList,
  plugin_radioList,
  radioList___vue_template_functional__,
  radioList___vue_styles__,
  radioList___vue_scopeId__,
  radioList___vue_module_identifier__
)

/* harmony default export */ var common_plugin_radioList = (radioList_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/collapse/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var collapse = ({
  name: 'yt-collapse',
  props: {
    /**
     * 折叠面板箭头位置   可取值  'left' || 'right'
     */
    align: {
      type: String,
      default: 'right'
    },
    /**
     * 折叠面板是否开启手风琴模式
     */
    accordion: {
      type: Boolean,
      default: true
    },
    /**
     * 折叠面板title所对应对象中的文字
     */
    label: {
      type: String,
      default: 'title'
    },
    /**
     * 折叠面板id所对应对象中的字段
     */
    name: String,
    /**
     *  遍历的数组
     */
    list: {
      type: Array,
      require: true
    },
    /**
     *  打开的面板   为Array时 对应多个折叠面板  为boolean时  对应单个折叠面板
     */
    value: [Array, Boolean]
  },
  computed: {
    _active: {
      get: function get() {
        return this.value;
      },
      set: function set(active) {
        this.$emit('input', active);
      }
    }
  },
  methods: {
    handlerClickToggle: function handlerClickToggle(item, index) {
      if (typeof this._active === 'boolean') {
        this._active = !this._active;
      } else if (this._active instanceof Array) {
        var key = this.name ? item[this.name] : index;
        var keyIndex = this._active.indexOf(key);
        var res = keyIndex >= 0;
        if (this.accordion && res) {
          this._active = [];
        } else if (this.accordion && !res) {
          this._active = [key];
        } else if (!this.accordion && res) {
          this._active.splice(keyIndex, 1);
        } else {
          this._active.push(key);
        }
      }
    },
    isActive: function isActive(item, index) {
      var res = false;
      if (typeof this._active === 'boolean') {
        res = this._active;
      } else if (this._active instanceof Array) {
        res = this._active.indexOf(this.name ? item[this.name] : index) >= 0;
      }
      return res;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-76c13f23","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/collapse/index.vue
var collapse_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-collapse"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"yt-collapse-item",class:{'is-active': _vm.isActive(item, index)}},[_c('div',{staticClass:"yt-collapse-title yt-border-all",on:{"click":function($event){return _vm.handlerClickToggle(item, index)}}},[_c('i',{staticClass:"yt-collapse-icon yt-icon yt-icon-right",class:("is-" + _vm.align)}),_vm._v(" "),_c('div',{staticClass:"yt-collapse-text"},[_vm._t("title",[_vm._v(_vm._s(item[_vm.label]))],null,item)],2)]),_vm._v(" "),_c('yt-collapse-transition',{directives:[{name:"show",rawName:"v-show",value:(_vm.isActive(item, index)),expression:"isActive(item, index)"}],on:{"transition":function($event){return _vm.$emit('transition', $event)}}},[_c('div',{staticClass:"yt-collapse-content"},[_vm._t("default",null,null,item)],2)])],1)}),0)}
var collapse_staticRenderFns = []
var collapse_esExports = { render: collapse_render, staticRenderFns: collapse_staticRenderFns }
/* harmony default export */ var plugin_collapse = (collapse_esExports);
// CONCATENATED MODULE: ./src/common/plugin/collapse/index.vue
var collapse_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var collapse___vue_template_functional__ = false
/* styles */
var collapse___vue_styles__ = null
/* scopeId */
var collapse___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var collapse___vue_module_identifier__ = null
var collapse_Component = collapse_normalizeComponent(
  collapse,
  plugin_collapse,
  collapse___vue_template_functional__,
  collapse___vue_styles__,
  collapse___vue_scopeId__,
  collapse___vue_module_identifier__
)

/* harmony default export */ var common_plugin_collapse = (collapse_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/collapse/collapseTransition.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var collapseTransition = ({
  name: 'yt-collapseTransition',
  methods: {
    beforeEnter: function beforeEnter(el) {
      if (!el.dataset) el.dataset = {};
      el.dataset.oldPaddingTop = el.style.paddingTop;
      el.dataset.oldPaddingBottom = el.style.paddingBottom;
      el.dataset.oldOverflow = el.style.overflow;

      el.style.height = '0';
      el.style.paddingTop = 0;
      el.style.paddingBottom = 0;
    },
    enter: function enter(el) {
      el.style.height = el.scrollHeight + 'px';
      el.style.paddingTop = el.dataset.oldPaddingTop;
      el.style.paddingBottom = el.dataset.oldPaddingBottom;
      el.style.overflow = 'hidden';
    },
    afterEnter: function afterEnter(el) {
      el.style.height = '';
      el.style.overflow = el.dataset.oldOverflow;
    },
    beforeLeave: function beforeLeave(el) {
      if (!el.dataset) el.dataset = {};
      el.dataset.oldPaddingTop = el.style.paddingTop;
      el.dataset.oldPaddingBottom = el.style.paddingBottom;
      el.dataset.oldOverflow = el.style.overflow;

      el.style.overflow = 'hidden';
      el.style.height = el.scrollHeight + 'px';
    },
    leave: function leave(el) {
      if (el.scrollHeight !== 0) {
        el.style.height = 0;
        el.style.paddingTop = 0;
        el.style.paddingBottom = 0;
      }
    },
    afterLeave: function afterLeave(el) {
      el.style.height = '';
      el.style.overflow = el.dataset.oldOverflow;
      el.style.paddingTop = el.dataset.oldPaddingTop;
      el.style.paddingBottom = el.dataset.oldPaddingBottom;
    },
    transitionEnd: function transitionEnd(e) {
      this.$emit('transition', e);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0fabd933","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/collapse/collapseTransition.vue
var collapseTransition_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{on:{"before-enter":_vm.beforeEnter,"enter":_vm.enter,"after-enter":_vm.afterEnter,"before-leave":_vm.beforeLeave,"leave":_vm.leave,"after-leave":_vm.afterLeave}},[_c('div',{staticStyle:{"transition":"all .3s ease"},on:{"transitionend":_vm.transitionEnd,"mozTransitionEnd":_vm.transitionEnd,"msTransitionEnd":_vm.transitionEnd,"oTransitionEnd":_vm.transitionEnd,"webkitTransitionEnd":_vm.transitionEnd}},[_vm._t("default")],2)])}
var collapseTransition_staticRenderFns = []
var collapseTransition_esExports = { render: collapseTransition_render, staticRenderFns: collapseTransition_staticRenderFns }
/* harmony default export */ var collapse_collapseTransition = (collapseTransition_esExports);
// CONCATENATED MODULE: ./src/common/plugin/collapse/collapseTransition.vue
var collapseTransition_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var collapseTransition___vue_template_functional__ = false
/* styles */
var collapseTransition___vue_styles__ = null
/* scopeId */
var collapseTransition___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var collapseTransition___vue_module_identifier__ = null
var collapseTransition_Component = collapseTransition_normalizeComponent(
  collapseTransition,
  collapse_collapseTransition,
  collapseTransition___vue_template_functional__,
  collapseTransition___vue_styles__,
  collapseTransition___vue_scopeId__,
  collapseTransition___vue_module_identifier__
)

/* harmony default export */ var plugin_collapse_collapseTransition = (collapseTransition_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/pull/index.vue



//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



var TOP_DEFAULT_CONFIG = {
  pullText: '下拉刷新',
  triggerText: '释放更新',
  loadingText: '加载中...',
  doneText: '加载完成',
  failText: '加载失败',
  loadedStayTime: 400,
  stayDistance: 50,
  triggerDistance: 70
};
var BOTTOM_DEFAULT_CONFIG = {
  pullText: '上拉加载',
  triggerText: '释放更新',
  loadingText: '加载中...',
  doneText: '加载完成',
  failText: '加载失败',
  loadedStayTime: 400,
  stayDistance: 50,
  triggerDistance: 70
};
/* harmony default export */ var pull = ({
  name: 'yt-pull',
  props: {
    /**
     * 外部调用时传进来的name   在topLoadMethod和bottomLoadMethod函数中  会回传出去，用于用户判断是哪个pull,此情形在多tab中常见
     */
    name: {
      type: [Object, String, Number]
    },
    distanceIndex: {
      type: Number,
      default: 2
    },
    /**
     * 下拉刷新包裹层的高度
     */
    topBlockHeight: {
      type: Number,
      default: 50
    },
    /**
     * 上啦加载包裹层的高度
     */
    bottomBlockHeight: {
      type: Number,
      default: 50
    },
    /**
     * pull的高度
     */
    wrapperHeight: {
      type: String,
      default: '100%'
    },
    /**
     *  下拉刷新函数
     */
    topLoadMethod: {
      type: Function
    },
    /**
     *  上拉加载函数
     */
    bottomLoadMethod: {
      type: Function
    },
    /**
     *  下拉刷新使用截流
     */
    isThrottleTopPull: {
      type: Boolean,
      default: true
    },
    /**
     *  上拉加载使用截流
     */
    isThrottleBottomPull: {
      type: Boolean,
      default: true
    },
    /**
     * 默认是 { pullText: '上拉加载', triggerText: '释放更新', loadingText: '加载中...', doneText: '加载完成', failText: '加载失败', loadedStayTime: 400, stayDistance: 50, triggerDistance: 70}
     */
    topConfig: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    /**
     * 默认是 { pullText: '上拉加载', triggerText: '释放更新', loadingText: '加载中...', doneText: '加载完成', failText: '加载失败', loadedStayTime: 400, stayDistance: 50, triggerDistance: 70}
     */
    bottomConfig: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  },
  data: function data() {
    return {
      scrollEl: null,
      startScrollTop: 0,
      distance: 0,
      direction: 0,
      diff: 0,
      beforeDiff: 0,
      topText: '',
      bottomText: '',
      state: '',
      bottomReached: false,
      throttleEmitTopPull: null,
      throttleEmitBottomPull: null
    };
  },

  computed: {
    stateSrc: function stateSrc() {
      if (this.state === 'pull' || this.state === 'trigger') {
        return __webpack_require__("KWL1");
      } else if (this.state === 'loading') {
        return __webpack_require__("tokW");
      } else if (this.state === 'loaded-done') {
        return __webpack_require__("QDyu");
      } else {
        return __webpack_require__("QDyu");
      }
    },
    _topConfig: function _topConfig() {
      return extends_default()({}, TOP_DEFAULT_CONFIG, this.topConfig);
    },
    _bottomConfig: function _bottomConfig() {
      return extends_default()({}, BOTTOM_DEFAULT_CONFIG, this.bottomConfig);
    }
  },
  watch: {
    state: function state(val) {
      if (this.direction === 'down') {
        /**
         * @event top-state-change
         * @description 下拉刷新的状态改变
         * @type {string}
         */
        this.$emit('top-state-change', val);
      } else {
        /**
         * @event bottom-state-change
         * @description 上拉加载的状态改变
         * @type {string}
         */
        this.$emit('bottom-state-change', val);
      }
    }
  },
  methods: {
    actionPull: function actionPull() {
      this.state = 'pull';
      this.direction === 'down' ? this.topText = this._topConfig.pullText : this.bottomText = this._bottomConfig.pullText;
    },
    actionTrigger: function actionTrigger() {
      this.state = 'trigger';
      this.direction === 'down' ? this.topText = this._topConfig.triggerText : this.bottomText = this._bottomConfig.triggerText;
    },
    actionLoading: function actionLoading() {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                if (!(_this.state === 'loading' || _this._inLoading)) {
                  _context.next = 2;
                  break;
                }

                return _context.abrupt('return');

              case 2:
                _this.state = 'loading';
                _this._inLoading = true;
                if (_this.direction === 'down') {
                  _this.topText = _this._topConfig.loadingText;
                  _this.scrollTo(_this._topConfig.stayDistance);
                  _this.topLoadMethod(_this.actionLoaded, _this.name);
                } else {
                  _this.bottomText = _this._bottomConfig.loadingText;
                  _this.scrollTo(-_this._bottomConfig.stayDistance);
                  _this.bottomLoadMethod(_this.actionLoaded, _this.name);
                }

              case 5:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    },
    actionLoaded: function actionLoaded() {
      var _this2 = this;

      var loadState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'done';
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
        var loadedStayTime;
        return regenerator_default.a.wrap(function _callee2$(_context2) {
          while (1) {
            switch (_context2.prev = _context2.next) {
              case 0:
                _this2.state = 'loaded-' + loadState;
                loadedStayTime = void 0;

                if (_this2.direction === 'down') {
                  _this2.topText = loadState === 'done' ? _this2._topConfig.doneText : _this2._topConfig.failText;
                  loadedStayTime = _this2._topConfig.loadedStayTime;
                } else {
                  _this2.bottomText = loadState === 'done' ? _this2._bottomConfig.doneText : _this2._bottomConfig.failText;
                  loadedStayTime = _this2._bottomConfig.loadedStayTime;
                }
                _context2.next = 5;
                return Object(utils["g" /* delayed */])(loadedStayTime);

              case 5:
                _this2.scrollTo(0);
                _context2.next = 8;
                return Object(utils["g" /* delayed */])(300);

              case 8:
                _this2.state = '';
                _context2.next = 11;
                return Object(utils["g" /* delayed */])(200);

              case 11:
                _this2._inLoading = false;

              case 12:
              case 'end':
                return _context2.stop();
            }
          }
        }, _callee2, _this2);
      }))();
    },
    scrollTo: function scrollTo(y) {
      var _this3 = this;

      var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee3() {
        return regenerator_default.a.wrap(function _callee3$(_context3) {
          while (1) {
            switch (_context3.prev = _context3.next) {
              case 0:
                _this3.$el.style.transition = duration + 'ms';
                _this3.diff = y;
                _context3.next = 4;
                return Object(utils["g" /* delayed */])(200);

              case 4:
                _this3.$el.style.transition = '';

              case 5:
              case 'end':
                return _context3.stop();
            }
          }
        }, _callee3, _this3);
      }))();
    },
    checkBottomReached: function checkBottomReached() {
      return this.scrollEl.scrollTop + this.scrollEl.offsetHeight + 1 >= this.scrollEl.scrollHeight;
    },
    handleTouchStart: function handleTouchStart() {
      this.beforeDiff = this.diff;
      this.startScrollTop = this.scrollEl.scrollTop;
      this.bottomReached = this.checkBottomReached();
    },
    handleTouchMove: function handleTouchMove(e) {
      this.distance = e.deltaY / this.distanceIndex + this.beforeDiff;
      this.direction = this.distance > 0 ? 'down' : 'up';
      if (this.startScrollTop === 0 && this.direction === 'down') {
        this.diff = this.distance;
        this.isThrottleTopPull ? this.throttleEmitTopPull(this.diff) : this.$emit('top-pull', this.diff);
        if (typeof this.topLoadMethod !== 'function') return;
        if (this.distance < this._topConfig.triggerDistance && this.state !== 'pull' && this.state !== 'loading') {
          this.actionPull();
        } else if (this.distance >= this._topConfig.triggerDistance && this.state !== 'trigger' && this.state !== 'loading') {
          this.actionTrigger();
        }
      } else if (this.bottomReached && this.direction === 'up') {
        this.diff = this.distance;
        this.isThrottleBottomPull ? this.throttleEmitBottomPull(this.diff) : this.$emit('bottom-pull', this.diff);
        if (typeof this.bottomLoadMethod !== 'function') return;
        if (Math.abs(this.distance) < this._bottomConfig.triggerDistance && this.state !== 'pull' && this.state !== 'loading') {
          this.actionPull();
        } else if (Math.abs(this.distance) >= this._bottomConfig.triggerDistance && this.state !== 'trigger' && this.state !== 'loading') {
          this.actionTrigger();
        }
      }
    },
    handleTouchEnd: function handleTouchEnd() {
      if (this.diff !== 0) {
        if (this.state === 'trigger') {
          this.actionLoading();
          return;
        }
        this.scrollTo(0);
      }
    },
    throttleEmit: function throttleEmit(delay) {
      var mustRunDelay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
      var eventName = arguments[2];

      var throttleMethod = function throttleMethod() {
        var args = [].concat(Array.prototype.slice.call(arguments));
        args.unshift(eventName);
        this.$emit.apply(this, args);
      };
      return Object(utils["v" /* throttle */])(throttleMethod, delay, mustRunDelay);
    },
    init: function init() {
      /**
       * @event top-pull
       * @description 下拉刷新事件
       * @type {Number}
       */
      this.throttleEmitTopPull = this.throttleEmit(200, 300, 'top-pull');
      /**
       * @event bottom-pull
       * @description 上拉加载事件
       * @type {Number}
       */
      this.throttleEmitBottomPull = this.throttleEmit(200, 300, 'bottom-pull');
      this.scrollEl = this.$refs.scroll;
      this.packingEvent = new utils["a" /* PackingEvent */]({
        el: this.scrollEl,
        prevent: false,
        stop: false,
        direction: utils["a" /* PackingEvent */].VERTICAL(),
        start: this.handleTouchStart,
        move: this.handleTouchMove,
        end: this.handleTouchEnd
      });
    },

    /**
     * @public startPull
     * @description 开始刷新数据
     * @type {string} 取值 down ||  up
     */
    startPull: function startPull() {
      var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'down';

      this.direction = direction;
      if (direction === 'down' && !this.topLoadMethod) return;
      if (direction === 'up' && !this.bottomLoadMethod) return;
      this.actionLoading();
    }
  },
  mounted: function mounted() {
    this.init();
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-dfff6bc2","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/pull/index.vue
var pull_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-pull",style:({ height: _vm.wrapperHeight, transform: ("translate3d(0, " + _vm.diff + "px, 0)") })},[(_vm.topLoadMethod)?_c('div',{staticClass:"yt-pull-action",style:({ height: (_vm.topBlockHeight + "px"), marginTop: ((-_vm.topBlockHeight) + "px") })},[_vm._t("top-block",[_c('p',{staticClass:"yt-pull-text"},[_c('img',{staticClass:"yt-pull-icon",class:{'is-down': _vm.state === 'pull', 'is-up': _vm.state === 'trigger'},attrs:{"src":_vm.stateSrc}}),_vm._v(_vm._s(_vm.topText))])],{"state":_vm.state,"stateText":_vm.topText})],2):_vm._e(),_vm._v(" "),_c('div',{ref:"scroll",staticClass:"yt-pull-scroll"},[_vm._t("default")],2),_vm._v(" "),(_vm.bottomLoadMethod)?_c('div',{staticClass:"yt-pull-action",style:({ height: (_vm.bottomBlockHeight + "px"), marginBottom: ((-_vm.bottomBlockHeight) + "px") })},[_vm._t("bottom-block",[_c('p',{staticClass:"yt-pull-text"},[_c('img',{staticClass:"yt-pull-icon",class:{'is-down': _vm.state === 'trigger', 'is-up': _vm.state === 'pull'},attrs:{"src":_vm.stateSrc}}),_vm._v(_vm._s(_vm.bottomText))])],{"state":_vm.state,"stateText":_vm.bottomText})],2):_vm._e()])}
var pull_staticRenderFns = []
var pull_esExports = { render: pull_render, staticRenderFns: pull_staticRenderFns }
/* harmony default export */ var plugin_pull = (pull_esExports);
// CONCATENATED MODULE: ./src/common/plugin/pull/index.vue
var pull_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var pull___vue_template_functional__ = false
/* styles */
var pull___vue_styles__ = null
/* scopeId */
var pull___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var pull___vue_module_identifier__ = null
var pull_Component = pull_normalizeComponent(
  pull,
  plugin_pull,
  pull___vue_template_functional__,
  pull___vue_styles__,
  pull___vue_scopeId__,
  pull___vue_module_identifier__
)

/* harmony default export */ var common_plugin_pull = (pull_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/spinner/spinner.js


var TRANSLATE32 = 'translate(32,32)';
var STROKE_OPACITY = 'stroke-opacity';
var ROUND = 'round';
var INDEFINITE = 'indefinite';
var DURATION = '750ms';
var NONE = 'none';
var SHORTCUTS = {
  a: 'animate',
  an: 'attributeName',
  at: 'animateTransform',
  c: 'circle',
  da: 'stroke-dasharray',
  os: 'stroke-dashoffset',
  f: 'fill',
  lc: 'stroke-linecap',
  rc: 'repeatCount',
  sw: 'stroke-width',
  t: 'transform',
  v: 'values'
};

var SPIN_ANIMATION = {
  v: '0,32,32;360,32,32',
  an: 'transform',
  type: 'rotate',
  rc: INDEFINITE,
  dur: DURATION
};

function createSvgElement(tagName, data, parent, spinnerName, size) {
  var ele = document.createElement(SHORTCUTS[tagName] || tagName);
  var k = void 0,
      x = void 0,
      y = void 0;

  for (k in data) {
    if (Object.prototype.toString.call(data[k]) === '[object Array]') {
      for (x = 0; x < data[k].length; x++) {
        if (data[k][x].fn) {
          for (y = 0; y < data[k][x].t; y++) {
            createSvgElement(k, data[k][x].fn(y, spinnerName), ele, spinnerName);
          }
        } else {
          createSvgElement(k, data[k][x], ele, spinnerName);
        }
      }
    } else {
      setSvgAttribute(ele, k, data[k]);
    }
  }
  if (size && size !== '28px') {
    setSvgAttribute(ele, 'style', 'width: ' + size + '; height: ' + size);
  }
  parent.appendChild(ele);
}

function setSvgAttribute(ele, k, v) {
  ele.setAttribute(SHORTCUTS[k] || k, v);
}

function animationValues(strValues, i) {
  var values = strValues.split(';');
  var back = values.slice(i);
  var front = values.slice(0, values.length - back.length);
  values = back.concat(front).reverse();
  return values.join(';') + ';' + values[0];
}

var IOS_SPINNER = {
  sw: 4,
  lc: ROUND,
  line: [{
    fn: function fn(i, spinnerName) {
      return {
        y1: spinnerName === 'ios' ? 17 : 12,
        y2: spinnerName === 'ios' ? 29 : 20,
        t: TRANSLATE32 + ' rotate(' + (30 * i + (i < 6 ? 180 : -180)) + ')',
        a: [{
          fn: function fn() {
            return {
              an: STROKE_OPACITY,
              dur: DURATION,
              v: animationValues('0;.1;.15;.25;.35;.45;.55;.65;.7;.85;1', i),
              rc: INDEFINITE
            };
          },

          t: 1
        }]
      };
    },

    t: 12
  }]
};

var spinners = {

  android: {
    c: [{
      sw: 6,
      da: 128,
      os: 82,
      r: 26,
      cx: 32,
      cy: 32,
      f: NONE
    }]
  },

  ios: IOS_SPINNER,

  'ios-small': IOS_SPINNER,

  bubbles: {
    sw: 0,
    c: [{
      fn: function fn(i) {
        return {
          cx: 24 * Math.cos(2 * Math.PI * i / 8),
          cy: 24 * Math.sin(2 * Math.PI * i / 8),
          t: TRANSLATE32,
          a: [{
            fn: function fn() {
              return {
                an: 'r',
                dur: DURATION,
                v: animationValues('1;2;3;4;5;6;7;8', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }]
        };
      },

      t: 8
    }]
  },

  circles: {

    c: [{
      fn: function fn(i) {
        return {
          r: 5,
          cx: 24 * Math.cos(2 * Math.PI * i / 8),
          cy: 24 * Math.sin(2 * Math.PI * i / 8),
          t: TRANSLATE32,
          sw: 0,
          a: [{
            fn: function fn() {
              return {
                an: 'fill-opacity',
                dur: DURATION,
                v: animationValues('.3;.3;.3;.4;.7;.85;.9;1', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }]
        };
      },

      t: 8
    }]
  },

  crescent: {
    c: [{
      sw: 4,
      da: 128,
      os: 82,
      r: 26,
      cx: 32,
      cy: 32,
      f: NONE,
      at: [SPIN_ANIMATION]
    }]
  },

  dots: {

    c: [{
      fn: function fn(i) {
        return {
          cx: 16 + 16 * i,
          cy: 32,
          sw: 0,
          a: [{
            fn: function fn() {
              return {
                an: 'fill-opacity',
                dur: DURATION,
                v: animationValues('.5;.6;.8;1;.8;.6;.5', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }, {
            fn: function fn() {
              return {
                an: 'r',
                dur: DURATION,
                v: animationValues('4;5;6;5;4;3;3', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }]
        };
      },

      t: 3
    }]
  },

  lines: {
    sw: 7,
    lc: ROUND,
    line: [{
      fn: function fn(i) {
        return {
          x1: 10 + i * 14,
          x2: 10 + i * 14,
          a: [{
            fn: function fn() {
              return {
                an: 'y1',
                dur: DURATION,
                v: animationValues('16;18;28;18;16', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }, {
            fn: function fn() {
              return {
                an: 'y2',
                dur: DURATION,
                v: animationValues('48;44;36;46;48', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }, {
            fn: function fn() {
              return {
                an: STROKE_OPACITY,
                dur: DURATION,
                v: animationValues('1;.8;.5;.4;1', i),
                rc: INDEFINITE
              };
            },

            t: 1
          }]
        };
      },

      t: 4
    }]
  },

  ripple: {
    f: NONE,
    'fill-rule': 'evenodd',
    sw: 3,
    circle: [{
      fn: function fn(i) {
        return {
          cx: 32,
          cy: 32,
          a: [{
            fn: function fn() {
              return {
                an: 'r',
                begin: i * -1 + 's',
                dur: '2s',
                v: '0;24',
                keyTimes: '0;1',
                keySplines: '0.1,0.2,0.3,1',
                calcMode: 'spline',
                rc: INDEFINITE
              };
            },

            t: 1
          }, {
            fn: function fn() {
              return {
                an: STROKE_OPACITY,
                begin: i * -1 + 's',
                dur: '2s',
                v: '.2;1;.2;0',
                rc: INDEFINITE
              };
            },

            t: 1
          }]
        };
      },

      t: 2
    }]
  },

  spiral: {
    defs: [{
      linearGradient: [{
        id: 'sGD',
        gradientUnits: 'userSpaceOnUse',
        x1: 55,
        y1: 46,
        x2: 2,
        y2: 46,
        stop: [{
          offset: 0.1,
          class: 'start'
        }, {
          offset: 1,
          class: 'stop'
        }]
      }]
    }],
    g: [{
      sw: 4,
      lc: ROUND,
      f: NONE,
      path: [{
        stroke: 'url(#sGD)',
        d: 'M4,32 c0,15,12,28,28,28c8,0,16-4,21-9'
      }, {
        d: 'M60,32 C60,16,47.464,4,32,4S4,16,4,32'
      }],
      at: [SPIN_ANIMATION]
    }]
  }

};

var animations = {
  android: function android(ele) {
    var self = this;

    this.stop = false;

    var rIndex = 0;
    var rotateCircle = 0;
    var startTime = void 0;
    var svgEle = ele.querySelector('g');
    var circleEle = ele.querySelector('circle');

    function run() {
      if (self.stop) return;

      var v = easeInOutCubic(Date.now() - startTime, 650);
      var scaleX = 1;
      var translateX = 0;
      var dasharray = 188 - 58 * v;
      var dashoffset = 182 - 182 * v;

      if (rIndex % 2) {
        scaleX = -1;
        translateX = -64;
        dasharray = 128 - -58 * v;
        dashoffset = 182 * v;
      }

      var rotateLine = [0, -101, -90, -11, -180, 79, -270, -191][rIndex];

      setSvgAttribute(circleEle, 'da', Math.max(Math.min(dasharray, 188), 128));
      setSvgAttribute(circleEle, 'os', Math.max(Math.min(dashoffset, 182), 0));
      setSvgAttribute(circleEle, 't', 'scale(' + scaleX + ',1) translate(' + translateX + ',0) rotate(' + rotateLine + ',32,32)');

      rotateCircle += 4.1;
      if (rotateCircle > 359) rotateCircle = 0;
      setSvgAttribute(svgEle, 't', 'rotate(' + rotateCircle + ',32,32)');

      if (v >= 1) {
        rIndex++;
        if (rIndex > 7) rIndex = 0;
        startTime = Date.now();
      }

      Object(utils["t" /* requestAnimationFrame */])(run);
    }

    return function () {
      startTime = Date.now();
      run();
      return self;
    };
  }
};

function easeInOutCubic(t, c) {
  t /= c / 2;
  if (t < 1) return 1 / 2 * t * t * t;
  t -= 2;
  return 1 / 2 * (t * t * t + 2);
}

/* harmony default export */ var spinner = (function (el, icon, size) {
  var spinnerName = void 0,
      anim = void 0; // eslint-disable-line
  spinnerName = icon;
  var container = document.createElement('div');
  createSvgElement('svg', {
    viewBox: '0 0 64 64',
    g: [spinners[spinnerName]]
  }, container, spinnerName, size);

  // Specifically for animations to work,
  // Android 4.3 and below requires the element to be
  // added as an html string, rather than dynmically
  // building up the svg element and appending it.
  el.innerHTML = container.innerHTML;
  start();

  function start() {
    if (animations[spinnerName]) {
      anim = animations[spinnerName](el)();
    }
  }

  return el;
});
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/spinner/index.vue
//
//
//
//



/* harmony default export */ var plugin_spinner = ({
  name: 'yt-spinner',
  mounted: function mounted() {
    spinner(this.$el, this.type, this.size);
  },

  props: {
    /**
     * spinner的类型  取值有 'android', 'ios', 'ios-small', 'bubbles', 'circles', 'crescent', 'dots', 'lines', 'ripple', 'spiral'
     */
    type: {
      type: String,
      default: 'ios'
    },
    /**
     * spinner的大小
     */
    size: {
      type: String,
      default: '28px'
    },
    /**
     * spinner的颜色
     */
    color: {
      type: String,
      default: null
    }
  },
  computed: {
    styles: function styles() {
      return {
        width: this.size,
        height: this.size,
        stroke: this.color,
        fill: this.color
      };
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-190af356","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/spinner/index.vue
var spinner_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"yt-spinner",class:[("yt-spinner__" + _vm.type)],style:(_vm.styles)})}
var spinner_staticRenderFns = []
var spinner_esExports = { render: spinner_render, staticRenderFns: spinner_staticRenderFns }
/* harmony default export */ var common_plugin_spinner = (spinner_esExports);
// CONCATENATED MODULE: ./src/common/plugin/spinner/index.vue
var spinner_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var spinner___vue_template_functional__ = false
/* styles */
var spinner___vue_styles__ = null
/* scopeId */
var spinner___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var spinner___vue_module_identifier__ = null
var spinner_Component = spinner_normalizeComponent(
  plugin_spinner,
  common_plugin_spinner,
  spinner___vue_template_functional__,
  spinner___vue_styles__,
  spinner___vue_scopeId__,
  spinner___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_spinner = (spinner_Component.exports);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/object/values.js
var values = __webpack_require__("MgeX");
var values_default = /*#__PURE__*/__webpack_require__.n(values);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/group/index.vue



//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var group = ({
  name: 'yt-group',

  props: {
    /**
     *  初始化+下拉+上拉加载时候调用的函数
     *  回传参数 { skip, limit, name}
     */
    searchApi: {
      required: true,
      type: [Function]
    },
    /**
     * 作为标识   在searchApi回调函数中会进行回传
     */
    name: {
      type: [String, Number, Object]
    },
    /**
     * 分组的字段
     */
    field: {
      type: String,
      default: 'createdAt'
    },
    /**
     * 每次刷新加载限制20条
     */
    limit: {
      type: Number,
      default: 20
    },
    /**
     * 是否启用下拉
     */
    down: {
      type: Boolean,
      default: true
    },
    /**
     * 是否启用上拉
     */
    up: {
      type: Boolean,
      default: true
    },
    /**
     * 默认在activated钩子函数里面，自动调取searchAp函数，实现自动刷新
     */
    autoRefresh: {
      type: Boolean,
      default: true
    },
    /**
     * 默认情况下会进行分组展示，当然你可以选择关闭该选项
     */
    group: {
      type: Boolean,
      default: true
    },
    /**
     * 标题的位置
     */
    titleAlign: {
      type: String,
      default: "left"
    },
    /**
     * 暂无信息的描述文字
     */
    noInfo: {
      type: String,
      default: "暂无信息"
    },
    /**
     * 是否友好化
     */
    calendar: {
      type: Boolean,
      default: true
    }
  },

  data: function data() {
    return {
      data: {},
      array: [],
      cacheList: []
    };
  },


  computed: {
    list: function list() {
      if (this.group) {
        var results = [];
        values_default()(this.data).forEach(function (v) {
          return results = results.concat(v);
        });
        return results;
      }
      return this.array;
    }
  },

  methods: {
    pullDown: function pullDown(loaded) {
      this.fetchData({ loaded: loaded });
    },
    pullUp: function pullUp(loaded) {
      this.fetchData({ skip: this.list.length, loaded: loaded });
    },
    fetchData: function fetchData() {
      var _this = this;

      var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var _option$skip, skip, _option$limit, limit, loaded, array;

        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                _option$skip = option.skip, skip = _option$skip === undefined ? 0 : _option$skip, _option$limit = option.limit, limit = _option$limit === undefined ? _this.limit : _option$limit, loaded = option.loaded;

                if (_this.searchApi) {
                  _context.next = 3;
                  break;
                }

                return _context.abrupt('return');

              case 3:
                _context.next = 5;
                return _this.searchApi({ skip: skip, limit: limit }, _this.name);

              case 5:
                array = _context.sent;

                _this.cacheList = _this.cacheList.concat(array);
                !loaded || loaded();
                if (_this.group) {
                  if (skip === 0) _this.data = {};
                  _this.data = Object(utils["n" /* groupDataByTime */])(array, _this.data, _this.field);
                } else {
                  _this.array = skip === 0 ? array : _this.array.concat(array);
                }

              case 9:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this);
      }))();
    },


    /**
     * @public
     * @description 强制开启下拉刷新
     * @return {void}
     */
    startPull: function startPull() {
      var _this2 = this;

      this.$nextTick(function () {
        _this2.$refs.pull && _this2.$refs.pull.startPull();
      });
    }
  },

  created: function created() {
    this.startPull();
  },
  activated: function activated() {
    if (this.autoRefresh) this.startPull();
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-7537fbe8","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/group/index.vue
var group_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-pull',{ref:"pull",staticClass:"yt-group",attrs:{"top-load-method":_vm.down ? _vm.pullDown : null,"bottom-load-method":_vm.up ? _vm.pullUp : null}},[(_vm.cacheList.length === 0 && _vm.noInfo)?_c('div',{staticClass:"yt-group-noInfo"},[_vm._v(_vm._s(_vm.noInfo)+"\n  ")]):_vm._e(),_vm._v(" "),_vm._t("header"),_vm._v(" "),_vm._l((_vm.data),function(val,key){return (_vm.group)?[_c('yt-sticky',{key:key,staticClass:"yt-group-category",class:("is-" + _vm.titleAlign),attrs:{"top":"0px"}},[_vm._v(_vm._s(_vm._f("calendarTime")(key,_vm.calendar))+"\n    ")]),_vm._v(" "),_vm._l((val),function(item,index){return _vm._t("default",null,{"_index":index},item)})]:_vm._e()}),_vm._v(" "),(!_vm.group)?[_vm._l((_vm.array),function(item,index){return _vm._t("default",null,{"_index":index},item)})]:_vm._e(),_vm._v(" "),_vm._t("footer")],2)}
var group_staticRenderFns = []
var group_esExports = { render: group_render, staticRenderFns: group_staticRenderFns }
/* harmony default export */ var plugin_group = (group_esExports);
// CONCATENATED MODULE: ./src/common/plugin/group/index.vue
var group_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var group___vue_template_functional__ = false
/* styles */
var group___vue_styles__ = null
/* scopeId */
var group___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var group___vue_module_identifier__ = null
var group_Component = group_normalizeComponent(
  group,
  plugin_group,
  group___vue_template_functional__,
  group___vue_styles__,
  group___vue_scopeId__,
  group___vue_module_identifier__
)

/* harmony default export */ var common_plugin_group = (group_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/inlineSelect/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var inlineSelect = ({
  name: 'inline-select',
  props: {
    /**
     * 小标题
     */
    title: {
      type: String,
      default: ''
    },
    /**
     * 选择的列表
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * label所对象的字段
     */
    label: {
      type: String,
      default: 'label'
    },
    /**
     * value所对象的字段
     */
    val: {
      type: String,
      default: 'value'
    },
    /**
     * 是否多选 默认false
     */
    multiple: {
      type: Boolean,
      default: false
    },
    /**
     * 多选时，最多选几个
     */
    max: {
      type: Number,
      default: null
    },
    /**
     * @model
     * 当前选中的值
     */
    value: {
      type: [String, Number, Object, Array]
    },
    /**
     * 一行默认放3个
     */
    x: {
      type: Number,
      default: 3
    }
  },
  computed: {
    currentValue: {
      get: function get() {
        return this.value || [];
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  methods: {
    IsDisabled: function IsDisabled(val) {
      if (this.multiple && this.value.length === this.max) {
        return this.currentValue.indexOf(val) === -1;
      }
      return false;
    },
    IsActive: function IsActive(val) {
      if (this.multiple) {
        return this.currentValue.indexOf(val) > -1;
      } else {
        return val === this.currentValue;
      }
    },
    handlerClick: function handlerClick(val) {
      if (this.multiple) {
        var list = [].concat(this.currentValue);
        var index = list.indexOf(val);
        if (index > -1) {
          list.splice(index, 1);
        } else if (!this.max || this.max && list.length < this.max) {
          list.push(val);
        }
        this.currentValue = list;
      } else {
        this.currentValue = val;
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1b58c49a","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/inlineSelect/index.vue
var inlineSelect_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-inlineSelect"},[(_vm.title)?_c('div',{staticClass:"yt-inlineSelect-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"yt-inlineSelect-wrap"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"yt-inlineSelect-box",style:(("width: " + (100 / _vm.x) + "%;")),on:{"click":function($event){return _vm.handlerClick( _vm.val ? item[_vm.val] : item )}}},[_c('span',{staticClass:"yt-inlineSelect-item",class:{ 'is-active': _vm.IsActive(_vm.val ? item[_vm.val] : item), 'is-disabled': _vm.IsDisabled(_vm.val ? item[_vm.val] : item) }},[_vm._v(_vm._s(item[_vm.label]))])])}),0)])}
var inlineSelect_staticRenderFns = []
var inlineSelect_esExports = { render: inlineSelect_render, staticRenderFns: inlineSelect_staticRenderFns }
/* harmony default export */ var plugin_inlineSelect = (inlineSelect_esExports);
// CONCATENATED MODULE: ./src/common/plugin/inlineSelect/index.vue
var inlineSelect_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var inlineSelect___vue_template_functional__ = false
/* styles */
var inlineSelect___vue_styles__ = null
/* scopeId */
var inlineSelect___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var inlineSelect___vue_module_identifier__ = null
var inlineSelect_Component = inlineSelect_normalizeComponent(
  inlineSelect,
  plugin_inlineSelect,
  inlineSelect___vue_template_functional__,
  inlineSelect___vue_styles__,
  inlineSelect___vue_scopeId__,
  inlineSelect___vue_module_identifier__
)

/* harmony default export */ var common_plugin_inlineSelect = (inlineSelect_Component.exports);

// EXTERNAL MODULE: ./node_modules/_better-scroll@1.14.1@better-scroll/dist/bscroll.esm.js
var bscroll_esm = __webpack_require__("kBI2");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/slider/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var slider = ({
  name: 'yt-slider',
  props: {
    /**
     * 列表
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * 是否显示下面的小圆点
     */
    dots: {
      type: Boolean,
      default: false
    },
    /**
     * @model
     * 默认在第一页
     */
    value: {
      type: Number,
      default: 0
    },
    preventDefault: {
      type: Boolean,
      default: true
    }
  },
  mounted: function mounted() {
    this.initScroll();
  },

  computed: {
    wrapStyle: function wrapStyle() {
      return 'width: ' + 100 * this.list.length + '%;';
    }
  },
  methods: {
    /**
     * @public
     * @description 刷新scroll
     * @return {void}
     */
    initScroll: function initScroll() {
      var _this = this;

      setTimeout(function () {
        if (_this.scroll) {
          _this.scroll.refresh();
        } else {
          _this.scroll = new bscroll_esm["a" /* default */](_this.$refs.scroll, {
            scrollX: true,
            snap: true,
            click: true,
            deceleration: 0.01,
            preventDefault: _this.preventDefault
          });
          _this.scroll.on('scrollEnd', function () {
            var page = _this.scroll.getCurrentPage().pageX;
            _this.$emit('input', page);
          });
        }
        try {
          _this.scroll.goToPage(_this.value, 0, 0);
        } catch (e) {}
      }, 30);
    }
  },
  watch: {
    'list': function list() {
      this.initScroll();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-d42e38a8","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/slider/index.vue
var slider_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"scroll",staticClass:"yt-slider"},[_c('div',{staticClass:"yt-slider-container",style:(_vm.wrapStyle)},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"yt-slider-item"},[_vm._t("default",null,{"data":item,"_index":index})],2)}),0),_vm._v(" "),_vm._t("dot",[(_vm.dots)?_c('div',{staticClass:"yt-slider-dots"},_vm._l((_vm.list),function(item,index){return _c('span',{key:index,staticClass:"yt-slider-dot",class:{ 'is-active': index === _vm.value}})}),0):_vm._e()])],2)}
var slider_staticRenderFns = []
var slider_esExports = { render: slider_render, staticRenderFns: slider_staticRenderFns }
/* harmony default export */ var plugin_slider = (slider_esExports);
// CONCATENATED MODULE: ./src/common/plugin/slider/index.vue
var slider_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var slider___vue_template_functional__ = false
/* styles */
var slider___vue_styles__ = null
/* scopeId */
var slider___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var slider___vue_module_identifier__ = null
var slider_Component = slider_normalizeComponent(
  slider,
  plugin_slider,
  slider___vue_template_functional__,
  slider___vue_styles__,
  slider___vue_scopeId__,
  slider___vue_module_identifier__
)

/* harmony default export */ var common_plugin_slider = (slider_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/buttonTab/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var buttonTab = ({
  name: 'yt-buttonTab',
  props: {
    /**
     * btn集合 例如['推荐', '分享'] 或者 [{text: '推荐', badge}, {text: '分享', badge}]
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * 当前选中页面  按数组索引 默认0
     * @model
     */
    value: {
      type: Number,
      default: 0
    },
    /**
     * 当进入某一个tab页面, 如果角标存在, 自动清除掉
     */
    autoClearBadge: {
      type: Boolean,
      default: true
    },
    /**
     * border的颜色
     */
    borderColor: {
      type: String,
      default: '#fff'
    },
    /**
     * 默认的背景色
     */
    defaultFillColor: {
      type: String,
      default: null
    },
    /**
     * 选中的背景色
     */
    activeFillColor: {
      type: String,
      default: null
    },
    /**
     * 默认的color
     */
    defaultColor: {
      type: String,
      default: null
    },
    /**
     * 选中时候的color
     */
    activeColor: {
      type: String,
      default: null
    },
    /**
     * tab的宽度
     */
    tabWidth: {
      type: String,
      default: '70px'
    },
    /**
     * tab的高度
     */
    tabHeight: {
      type: String,
      default: '30px'
    },
    /**
     * tab的字体大小
     */
    tabSize: {
      type: String,
      default: '14px'
    }
  },
  computed: {
    maskStyle: function maskStyle() {
      return {
        backgroundColor: this.activeFillColor,
        transform: 'translate3d(' + this.active + '00%, 0, 0)',
        width: this.tabWidth,
        borderRadius: parseInt(this.tabHeight) / 2 + 'px'
      };
    },
    fakeStyle: function fakeStyle() {
      return {
        borderColor: this.borderColor,
        backgroundColor: this.defaultFillColor,
        borderRadius: parseInt(this.tabHeight) / 2 + 'px'
      };
    }
  },
  data: function data() {
    return {
      active: this.value,
      renderList: this.getRenderList(this.list)
    };
  },
  created: function created() {
    this.clearBadge(this.active);
  },

  methods: {
    itemStyle: function itemStyle(index) {
      return {
        color: this.active === index ? this.activeColor : this.defaultColor,
        width: this.tabWidth,
        height: this.tabHeight,
        lineHeight: this.tabHeight,
        fontSize: this.tabSize
      };
    },
    getRenderList: function getRenderList(list) {
      return list.map(function (item) {
        if (typeof item === 'string') {
          return {
            text: item,
            badge: null
          };
        }
        return item;
      });
    },
    handlerClick: function handlerClick(index) {
      this.active = index;
    },
    clearBadge: function clearBadge(active) {
      if (this.autoClearBadge) {
        var tab = this.renderList[active];
        if (tab) {
          tab.badge = null;
        }
        this.renderList.splice(active, 1, tab);
      }
    }
  },
  watch: {
    'list': function list(val) {
      this.renderList = [].concat(this.getRenderList(val));
      if (this.active >= this.renderList.length) {
        this.active = 0;
      }
      this.clearBadge(this.active);
    },
    'value': function value(val) {
      this.active = val;
    },
    'active': function active(val) {
      this.clearBadge(val);
      this.$emit('input', val);
      /**
       * button-tab发生变化事件
       * @event change
       * @type {Number}
       */
      this.$emit('change', val);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-88189c12","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/buttonTab/index.vue
var buttonTab_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-buttonTab"},[_vm._l((_vm.renderList),function(bar,index){return _c('span',{key:index,staticClass:"yt-buttonTab-item",class:{ 'is-active': _vm.active === index },style:(_vm.itemStyle(index)),on:{"click":function($event){return _vm.handlerClick(index)}}},[_vm._v("\n    "+_vm._s(bar.text)+"\n    "),_c('span',{staticClass:"yt-buttonTab-badge"},[(bar && bar.badge)?_c('yt-badge',_vm._b({},'yt-badge',bar.badge,false)):_vm._e()],1)])}),_vm._v(" "),_c('span',{staticClass:"yt-buttonTab-mask",style:(_vm.maskStyle)}),_vm._v(" "),_c('span',{staticClass:"yt-buttonTab-fake",style:(_vm.fakeStyle)})],2)}
var buttonTab_staticRenderFns = []
var buttonTab_esExports = { render: buttonTab_render, staticRenderFns: buttonTab_staticRenderFns }
/* harmony default export */ var plugin_buttonTab = (buttonTab_esExports);
// CONCATENATED MODULE: ./src/common/plugin/buttonTab/index.vue
var buttonTab_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var buttonTab___vue_template_functional__ = false
/* styles */
var buttonTab___vue_styles__ = null
/* scopeId */
var buttonTab___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var buttonTab___vue_module_identifier__ = null
var buttonTab_Component = buttonTab_normalizeComponent(
  buttonTab,
  plugin_buttonTab,
  buttonTab___vue_template_functional__,
  buttonTab___vue_styles__,
  buttonTab___vue_scopeId__,
  buttonTab___vue_module_identifier__
)

/* harmony default export */ var common_plugin_buttonTab = (buttonTab_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/form/index.vue
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var plugin_form = ({
  name: 'yt-form',
  provide: function provide() {
    return {
      ytForm: this
    };
  },

  props: {
    /**
     * 是否禁用form  可使下面的 btn input textarea等组件处于禁用状态
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     *  表单数据对象
     */
    model: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    /**
     * 表单验证规则
     */
    rules: {
      type: Object,
      default: function _default() {
        return {};
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1bb66834","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/form/index.vue
var form_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-form"},[_c('div',{staticClass:"yt-form-wrapper"},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.btn)?_vm._t("btn"):_vm._e()],2)}
var form_staticRenderFns = []
var form_esExports = { render: form_render, staticRenderFns: form_staticRenderFns }
/* harmony default export */ var common_plugin_form = (form_esExports);
// CONCATENATED MODULE: ./src/common/plugin/form/index.vue
var form_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var form___vue_template_functional__ = false
/* styles */
var form___vue_styles__ = null
/* scopeId */
var form___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var form___vue_module_identifier__ = null
var form_Component = form_normalizeComponent(
  plugin_form,
  common_plugin_form,
  form___vue_template_functional__,
  form___vue_styles__,
  form___vue_scopeId__,
  form___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_form = (form_Component.exports);

// EXTERNAL MODULE: ./node_modules/_autosize@4.0.2@autosize/dist/autosize.js
var autosize = __webpack_require__("tP2H");
var autosize_default = /*#__PURE__*/__webpack_require__.n(autosize);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/textarea/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var plugin_textarea = ({
  name: 'yt-textarea',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * 类型  取值有column || row
     */
    type: {
      type: String,
      default: 'column'
    },
    /**
     * border  取值 none | half | normal
     */
    border: {
      type: String,
      default: 'half'
    },
    /**
     *  placeholder的文字
     */
    placeholder: {
      type: String,
      default: '请输入...'
    },
    /**
     *  禁用状态时候placeholder的文字
     */
    disabledPlaceholder: {
      type: String,
      default: '暂无内容'
    },
    /**
     * 标题
     */
    title: {
      type: String,
      default: ''
    },
    /**
     * 输入框自适应
     */
    autosize: {
      type: Boolean,
      default: true
    },
    /**
     * 输入框的值
     * @model
     */
    value: {
      type: String,
      default: ''
    },
    /**
     * 显示计数
     */
    showCount: {
      type: Boolean,
      default: false
    },
    /**
     * 输入框最多输入多个字
     */
    max: {
      type: Number,
      default: 1000
    },
    /**
     * 禁用输入框
     */
    disabled: {
      type: Boolean,
      default: false
    },
    offset: {
      type: Number,
      default: 40
    }
  },
  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },

    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        if (val.length > this.max) {
          val = val.slice(0, this.max);
          this.$refs.input.value = val;
        }
        this.$emit('input', val);
      }
    }
  },
  mounted: function mounted() {
    !this.autosize || this.bindAutosize();
  },

  methods: {
    updateAutosize: function updateAutosize() {
      autosize_default.a.update(this.$refs.input);
    },
    bindAutosize: function bindAutosize() {
      autosize_default()(this.$refs.input);
    },
    unbindAutosize: function unbindAutosize() {
      autosize_default.a.destroy(this.$refs.input);
    },
    focus: function focus() {
      this.$refs.textarea.focus();
    },
    _setScroll: function _setScroll(el, start, move) {
      var direction = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'scrollLeft';

      var count = 0;
      var step = function step() {
        var scrollDuration = 15;
        el[direction] += move / scrollDuration;
        if (++count < scrollDuration) {
          window.requestAnimationFrame(step);
        }
      };
      Object(utils["t" /* requestAnimationFrame */])(step);
    },
    doScrollParent: function doScrollParent() {
      // let options = getParentAndOffsetByNode(this.$el)
      // if (options.parent) {
      //   let el = options.parent
      //   let start = el.scrollTop
      //   let end = options.offset - this.offset
      //   this._setScroll(el, start, end - start, 'scrollTop')
      // }
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.unbindAutosize();
  },

  watch: {
    'autosize': function autosize(val) {
      this.unbindAutosize();
      !val || this.bindAutosize();
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-30255517","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/textarea/index.vue
var textarea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-textarea",class:[("is-" + _vm.type), _vm.type === 'row' ? ("yt-border-" + _vm.border) : '']},[_c('div',{staticClass:"yt-textarea-title",class:("is-" + _vm.border)},[_vm._t("default",[_vm._v(_vm._s(_vm.title))])],2),_vm._v(" "),_c('div',{staticClass:"yt-textarea-body"},[_c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.currentValue),expression:"currentValue"}],ref:"input",staticClass:"yt-textarea-input",attrs:{"placeholder":_vm._disabled ? _vm.disabledPlaceholder : _vm.placeholder,"disabled":_vm._disabled},domProps:{"value":(_vm.currentValue)},on:{"click":_vm.doScrollParent,"input":function($event){if($event.target.composing){ return; }_vm.currentValue=$event.target.value}}}),_vm._v(" "),(_vm.showCount && !_vm._disabled)?_c('div',{staticClass:"yt-textarea-count",on:{"click":_vm.focus}},[_c('span',[_vm._v(_vm._s(_vm.currentValue.length)+" / "+_vm._s(_vm.max))])]):_vm._e()])])}
var textarea_staticRenderFns = []
var textarea_esExports = { render: textarea_render, staticRenderFns: textarea_staticRenderFns }
/* harmony default export */ var common_plugin_textarea = (textarea_esExports);
// CONCATENATED MODULE: ./src/common/plugin/textarea/index.vue
var textarea_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var textarea___vue_template_functional__ = false
/* styles */
var textarea___vue_styles__ = null
/* scopeId */
var textarea___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var textarea___vue_module_identifier__ = null
var textarea_Component = textarea_normalizeComponent(
  plugin_textarea,
  common_plugin_textarea,
  textarea___vue_template_functional__,
  textarea___vue_styles__,
  textarea___vue_scopeId__,
  textarea___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_textarea = (textarea_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/progress/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var progress = ({
  name: 'yt-progress',
  props: {
    /**
     * 进度百分比
     */
    percent: {
      required: true,
      type: Number,
      default: 0
    },
    /**
     *  progress的样式类型 取值有  circle || line
     */
    type: {
      type: String,
      default: 'circle'
    },
    /**
     *  type=circle时 线条宽度
     */
    strokeWidth: {
      type: Number,
      default: 5
    },
    /**
     * 线条颜色  默认为 [ '#FF6B6B', '#FF9800', '#39b8fd', '#00CC8F' ]
     */
    strokeColor: {
      type: Array,
      default: function _default() {
        return ['#FF6B6B', '#FF9800', '#39b8fd', '#00CC8F'];
      }
    },
    /**
     * type=circle时 背景线条宽度
     */
    trailWidth: {
      type: Number,
      default: 1
    },
    /**
     * 背景线条颜色
     */
    trailColor: {
      type: String,
      default: '#D9D9D9'
    },
    /**
     * type=line时 线的高度
     */
    lineHeight: {
      type: Number,
      default: 10
    },
    /**
     * type=line时 content所在的为止  取值有   right || center
     */
    lineContentPos: {
      type: String,
      default: 'right'
    },
    strokeLinecap: {
      type: String,
      default: 'round'
    },
    customColor: {
      type: Function
    }
  },
  computed: {
    currentColor: function currentColor() {
      var _this = this;

      if (this.customColor) return this.customColor();
      if (!this.strokeColor.length || this.percent === 0) return this.trailColor;
      var len = this.strokeColor.length;
      var color = this.strokeColor.find(function (color, index) {
        return _this.percent / 100 < (index + 1) / len;
      });
      return color || this.strokeColor[len - 1];
    },
    radius: function radius() {
      return 50 - this.strokeWidth / 2;
    },
    pathString: function pathString() {
      return 'M 50,50 m 0,-' + this.radius + '\n    a ' + this.radius + ',' + this.radius + ' 0 1 1 0,' + 2 * this.radius + '\n    a ' + this.radius + ',' + this.radius + ' 0 1 1 0,-' + 2 * this.radius;
    },
    len: function len() {
      return Math.PI * 2 * this.radius;
    },
    pathStyle: function pathStyle() {
      return {
        'stroke-dasharray': this.len + 'px ' + this.len + 'px',
        'stroke-dashoffset': (100 - this.percent) / 100 * this.len + 'px',
        'transition': 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease'
      };
    },
    lineCurStyle: function lineCurStyle() {
      return {
        width: Math.min(this.percent, 100) + '%',
        height: this.lineHeight + 'px',
        borderRadius: this.lineHeight / 2 + 'px',
        backgroundColor: this.currentColor
      };
    },
    lineTrailStyle: function lineTrailStyle() {
      return {
        height: this.lineHeight + 'px',
        borderRadius: this.lineHeight / 2 + 'px',
        backgroundColor: this.trailColor
      };
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-29aa805d","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/progress/index.vue
var progress_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-progress"},[(_vm.type === 'circle')?_c('div',{staticClass:"yt-progressCircle"},[_c('svg',{attrs:{"viewBox":"0 0 100 100"}},[_c('path',{attrs:{"d":_vm.pathString,"stroke":_vm.trailColor,"stroke-width":_vm.trailWidth,"fill-opacity":0}}),_vm._v(" "),_c('path',{style:(_vm.pathStyle),attrs:{"d":_vm.pathString,"stroke-linecap":_vm.strokeLinecap,"stroke":_vm.currentColor,"stroke-width":_vm.strokeWidth,"fill-opacity":"0"}})]),_vm._v(" "),(_vm.$slots.default)?_c('div',{staticClass:"yt-progressCircle-content",style:(("color: " + _vm.currentColor))},[_vm._t("default",null,{"color":_vm.currentColor})],2):_vm._e()]):(_vm.type === 'line')?_c('div',{staticClass:"yt-progressLine"},[_c('div',{staticClass:"yt-progressLine-wrapper"},[_c('div',{staticClass:"yt-progressLine-cur",style:(_vm.lineCurStyle)}),_vm._v(" "),_c('div',{staticClass:"yt-progressLine-trail",style:(_vm.lineTrailStyle)})]),_vm._v(" "),(_vm.$slots.default)?_c('div',{staticClass:"yt-progressLine-content",class:("is-" + _vm.lineContentPos)},[_vm._t("default",null,{"color":_vm.currentColor})],2):_vm._e()]):_vm._e()])}
var progress_staticRenderFns = []
var progress_esExports = { render: progress_render, staticRenderFns: progress_staticRenderFns }
/* harmony default export */ var plugin_progress = (progress_esExports);
// CONCATENATED MODULE: ./src/common/plugin/progress/index.vue
var progress_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var progress___vue_template_functional__ = false
/* styles */
var progress___vue_styles__ = null
/* scopeId */
var progress___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var progress___vue_module_identifier__ = null
var progress_Component = progress_normalizeComponent(
  progress,
  plugin_progress,
  progress___vue_template_functional__,
  progress___vue_styles__,
  progress___vue_scopeId__,
  progress___vue_module_identifier__
)

/* harmony default export */ var common_plugin_progress = (progress_Component.exports);

// EXTERNAL MODULE: ./src/common/plugin/$toast/index.js + 3 modules
var $toast = __webpack_require__("kZcp");

// EXTERNAL MODULE: ./node_modules/_vue@2.6.6@vue/dist/vue.esm.js
var vue_esm = __webpack_require__("PVEY");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$previewImg/index.vue
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var $previewImg = ({
  name: 'previewImg',
  computed: {
    title: function title() {
      return this.current + 1 + ' / ' + this.list.length;
    }
  },
  data: function data() {
    var _this = this;

    return {
      list: [],
      leftData: [{
        font: 'yt-icon yt-icon-back',
        click: function click() {
          _this.hide();
        }
      }],
      current: 0,
      showFlag: false
    };
  },

  methods: {
    show: function show(_ref) {
      var _ref$list = _ref.list,
          list = _ref$list === undefined ? [] : _ref$list,
          _ref$current = _ref.current,
          current = _ref$current === undefined ? 0 : _ref$current;

      if (false) {
        this.showFlag = true;
        this.current = current;
        this.list = [].concat(list);
      } else {
        utils["c" /* bridge */].PreviewImg(current, list);
      }
    },
    hide: function hide() {
      this.showFlag = false;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-0f9bfde5","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$previewImg/index.vue
var $previewImg_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"yt-module"}},[(_vm.showFlag)?_c('yt-page',{staticClass:"yt-previewImg",attrs:{"headerTransparent":"","fillColor":"#000000","title":_vm.title,"leftData":_vm.leftData}},[_c('yt-slider',{staticClass:"yt-previewImg-body",attrs:{"list":_vm.list},scopedSlots:_vm._u([{key:"default",fn:function(scope){return _c('img',{staticClass:"yt-previewImg-img",attrs:{"src":scope.data}})}}]),model:{value:(_vm.current),callback:function ($$v) {_vm.current=$$v},expression:"current"}})],1):_vm._e()],1)}
var $previewImg_staticRenderFns = []
var $previewImg_esExports = { render: $previewImg_render, staticRenderFns: $previewImg_staticRenderFns }
/* harmony default export */ var plugin_$previewImg = ($previewImg_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$previewImg/index.vue
var $previewImg_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $previewImg___vue_template_functional__ = false
/* styles */
var $previewImg___vue_styles__ = null
/* scopeId */
var $previewImg___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $previewImg___vue_module_identifier__ = null
var $previewImg_Component = $previewImg_normalizeComponent(
  $previewImg,
  plugin_$previewImg,
  $previewImg___vue_template_functional__,
  $previewImg___vue_styles__,
  $previewImg___vue_scopeId__,
  $previewImg___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$previewImg = ($previewImg_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$previewImg/index.js
/**
 * Created by mas on 2018/3/9.
 */



var previewImgPool = [];
var $previewImg_getAnInstance = function getAnInstance() {
  if (previewImgPool.length > 0) {
    return previewImgPool[0];
  }
  var PreviewImgConstructor = vue_esm["a" /* default */].extend(common_plugin_$previewImg);
  var instance = new PreviewImgConstructor({
    el: document.createElement('div')
  });
  previewImgPool.push(instance);
  return instance;
};
function PreviewImg(options) {
  var instance = $previewImg_getAnInstance();
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show(options);
  });
  return instance;
}
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/file/index.vue


//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//





/* harmony default export */ var plugin_file = ({
  name: 'yt-file',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * 设置最大值
     */
    max: {
      type: Number,
      default: 5
    },
    /**
     * 文件列表 例如 [{name, url}]
     */
    value: Array,
    /**
     *  是否禁用新增
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     *  上传文件的函数   函数接受一个参数 为file对象 目前只能上传单个文件
     */
    uploadFile: {
      type: Function,
      required: true
    },
    noInfoText: {
      type: String,
      default: "暂无照片!"
    }
  },
  computed: {
    btnText: function btnText() {
      if (!this.fileList || this.fileList.length === 0) return '拍摄/文件';
      return this.fileList.length + ' / ' + this.max;
    },
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },

    fileList: {
      get: function get() {
        return this.value || [];
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    }
  },
  methods: {
    handlerTap: function handlerTap(file) {
      if (!file.url) {
        Object($toast["a" /* Toast */])('文件不存在', 'tool');
      } else if (Object(utils["p" /* isImg */])(file.name)) {
        var imgList = this.fileList.reduce(function (results, item) {
          if (Object(utils["p" /* isImg */])(item.name)) {
            results.push(item.url);
          }
          return results;
        }, []);
        var current = imgList.indexOf(file.url);
        PreviewImg({ current: current, list: imgList });
      } else if (Object(utils["q" /* isVideo */])(file.name)) {
        utils["c" /* bridge */].Play(file.url);
      } else {
        utils["c" /* bridge */].PreviewFile({ title: file.name, url: file.url });
      }
    },
    handlerToast: function handlerToast() {
      if (this.fileList.length >= this.max) {
        Object($toast["a" /* Toast */])('\u6700\u591A\u6DFB\u52A0' + this.max + '\u4E2A!', 'error');
      }
    },
    handlerRemove: function handlerRemove(index) {
      if (this._disabled) return;
      this.fileList.splice(index, 1);
    },
    handlerChange: function handlerChange(e) {
      var _this = this;

      return asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
        var files, _ref, name, _name, url, _url, file;

        return regenerator_default.a.wrap(function _callee$(_context) {
          while (1) {
            switch (_context.prev = _context.next) {
              case 0:
                files = e.target.files;

                if (!(files && files.length && _this.uploadFile)) {
                  _context.next = 17;
                  break;
                }

                _context.prev = 2;
                _context.next = 5;
                return _this.uploadFile(files[0]);

              case 5:
                _ref = _context.sent;
                name = _ref.name;
                _name = _ref._name;
                url = _ref.url;
                _url = _ref._url;
                file = {
                  name: _name || name,
                  url: _url || url
                };

                _this.fileList = [].concat(_this.fileList, [file]);
                _context.next = 17;
                break;

              case 14:
                _context.prev = 14;
                _context.t0 = _context['catch'](2);

                Object($toast["a" /* Toast */])('上传文件失败！', 'error');

              case 17:
                e.target.value = null;

              case 18:
              case 'end':
                return _context.stop();
            }
          }
        }, _callee, _this, [[2, 14]]);
      }))();
    },
    isImg: function isImg(file) {
      return Object(utils["p" /* isImg */])(file.name);
    },
    isVideo: function isVideo(file) {
      return Object(utils["q" /* isVideo */])(file.name);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-3d3671b2","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/file/index.vue
var file_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-file"},[(_vm._disabled && _vm.fileList.length === 0)?_c('div',{staticClass:"yt-file-noInfo"},[_c('img',{staticStyle:{"width":"36%"},attrs:{"src":__webpack_require__("s2L3")}}),_vm._v(" "),_c('p',{staticClass:"yt-file-noInfo-text"},[_vm._v(_vm._s(_vm.noInfoText))])]):_vm._e(),_vm._v(" "),_vm._l((_vm.fileList),function(file,index){return _c('div',{key:index,staticClass:"yt-file-item"},[(_vm.isImg(file))?_c('img',{staticClass:"yt-file-img",attrs:{"src":file.url},on:{"click":function($event){return _vm.handlerTap(file)}}}):_vm._e(),_vm._v(" "),(!_vm.isImg(file))?_c('div',{staticClass:"yt-file-btn",on:{"click":function($event){return _vm.handlerTap(file)}}},[_c('p',{staticClass:"yt-file-text"},[_vm._v(_vm._s(file.name))])]):_vm._e(),_vm._v(" "),(!_vm._disabled)?_c('span',{staticClass:"yt-file-remove",on:{"click":function($event){$event.stopPropagation();return _vm.handlerRemove(index)}}},[_c('i',{staticClass:"yt-icon yt-icon-close"})]):_vm._e()])}),_vm._v(" "),(!_vm._disabled)?_c('div',{staticClass:"yt-file-upload"},[(_vm.fileList.length < _vm.max)?_c('input',{ref:"input",staticClass:"yt-file-input",attrs:{"type":"file"},on:{"change":_vm.handlerChange}}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"yt-file-btn",on:{"click":_vm.handlerToast}},[_c('i',{staticClass:"yt-file-camera yt-icon yt-icon-camera"}),_vm._v(" "),_c('p',{staticClass:"yt-file-text"},[_vm._v(_vm._s(_vm.btnText))])])]):_vm._e()],2)}
var file_staticRenderFns = []
var file_esExports = { render: file_render, staticRenderFns: file_staticRenderFns }
/* harmony default export */ var common_plugin_file = (file_esExports);
// CONCATENATED MODULE: ./src/common/plugin/file/index.vue
var file_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var file___vue_template_functional__ = false
/* styles */
var file___vue_styles__ = null
/* scopeId */
var file___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var file___vue_module_identifier__ = null
var file_Component = file_normalizeComponent(
  plugin_file,
  common_plugin_file,
  file___vue_template_functional__,
  file___vue_styles__,
  file___vue_scopeId__,
  file___vue_module_identifier__
)

/* harmony default export */ var src_common_plugin_file = (file_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/shopCart/ball.vue
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var ball = ({
  props: {
    color: {
      type: String
    },
    ball: {
      type: Object
    }
  },
  computed: {
    innerStyle: function innerStyle() {
      return { background: this.color };
    }
  },
  methods: {
    beforeDrop: function beforeDrop(el) {
      var rect = this.ball.el.getBoundingClientRect();
      var x = rect.left - 32;
      var y = -(window.innerHeight - rect.top - 22);
      el.style.display = '';
      el.style.webkitTransform = 'translate3d(0, ' + y + 'px, 0)';
      el.style.transform = 'translate3d(0, ' + y + 'px, 0)';
      var inner = this.$refs.inner;
      inner.style.webkitTransform = 'translate3d(' + x + 'px,0,0)';
      inner.style.transform = 'translate3d(' + x + 'px,0,0)';
    },
    dropping: function dropping(el, done) {
      var _this = this;

      var rf = el.offsetHeight;
      this.$nextTick(function () {
        el.style.webkitTransform = 'translate3d(0, 0, 0)';
        el.style.transform = 'translate3d(0, 0, 0)';
        var inner = _this.$refs.inner;
        inner.style.webkitTransform = 'translate3d(0, 0, 0)';
        inner.style.transform = 'translate3d(0, 0, 0)';
        el.addEventListener('transitionend', done);
      });
    },
    afterDrop: function afterDrop(el) {
      this.ball.show = false;
      el.style.display = 'none';
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-20ce95e0","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/shopCart/ball.vue
var ball_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{on:{"before-enter":_vm.beforeDrop,"enter":_vm.dropping,"after-enter":_vm.afterDrop}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.ball.show),expression:"ball.show"}],staticClass:"yt-shopCartBall"},[_c('div',{ref:"inner",staticClass:"yt-shopCartBall-inner",style:(_vm.innerStyle)})])])}
var ball_staticRenderFns = []
var ball_esExports = { render: ball_render, staticRenderFns: ball_staticRenderFns }
/* harmony default export */ var shopCart_ball = (ball_esExports);
// CONCATENATED MODULE: ./src/common/plugin/shopCart/ball.vue
var ball_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var ball___vue_template_functional__ = false
/* styles */
var ball___vue_styles__ = null
/* scopeId */
var ball___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var ball___vue_module_identifier__ = null
var ball_Component = ball_normalizeComponent(
  ball,
  shopCart_ball,
  ball___vue_template_functional__,
  ball___vue_styles__,
  ball___vue_scopeId__,
  ball___vue_module_identifier__
)

/* harmony default export */ var plugin_shopCart_ball = (ball_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/shopCart/index.vue
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var shopCart = ({
  name: 'yt-shopCart',

  props: {
    /**
     * 小球的颜色
     */
    ballColor: {
      type: String,
      default: 'rgb(0, 160, 220)'
    }
  },

  components: { ball: plugin_shopCart_ball },

  data: function data() {
    return {
      balls: [{
        show: false
      }, {
        show: false
      }, {
        show: false
      }, {
        show: false
      }, {
        show: false
      }, {
        show: false
      }, {
        show: false
      }, {
        show: false
      }]
    };
  },


  methods: {
    /**
     * @public
     * @description 开始小球动画
     * @param {el} dom节点
     * @return {void}
     */
    start: function start(el) {
      for (var i = 0; i < this.balls.length; i++) {
        var _ball = this.balls[i];
        if (!_ball.show) {
          _ball.show = true;
          _ball.el = el;
          return;
        }
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5f450353","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/shopCart/index.vue
var shopCart_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-shopCart"},[_c('div',{staticClass:"yt-shopCart-content"},[_vm._t("default")],2),_vm._v(" "),_c('div',_vm._l((_vm.balls),function(ball,index){return _c('ball',{key:index,attrs:{"color":_vm.ballColor,"ball":ball}})}),1)])}
var shopCart_staticRenderFns = []
var shopCart_esExports = { render: shopCart_render, staticRenderFns: shopCart_staticRenderFns }
/* harmony default export */ var plugin_shopCart = (shopCart_esExports);
// CONCATENATED MODULE: ./src/common/plugin/shopCart/index.vue
var shopCart_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var shopCart___vue_template_functional__ = false
/* styles */
var shopCart___vue_styles__ = null
/* scopeId */
var shopCart___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var shopCart___vue_module_identifier__ = null
var shopCart_Component = shopCart_normalizeComponent(
  shopCart,
  plugin_shopCart,
  shopCart___vue_template_functional__,
  shopCart___vue_styles__,
  shopCart___vue_scopeId__,
  shopCart___vue_module_identifier__
)

/* harmony default export */ var common_plugin_shopCart = (shopCart_Component.exports);

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/promise.js
var promise = __webpack_require__("rVsN");
var promise_default = /*#__PURE__*/__webpack_require__.n(promise);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$confirm/index.vue

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var $confirm = ({
  name: 'yt-confirm',
  data: function data() {
    return {
      showFlag: false,
      title: '',
      desc: '',
      confirm: null,
      cancel: null,
      confirmText: '',
      cancelText: '',
      loaded: null
    };
  },

  methods: {
    show: function show(_ref) {
      var _this = this;

      var _ref$confirmText = _ref.confirmText,
          confirmText = _ref$confirmText === undefined ? '确认' : _ref$confirmText,
          _ref$cancelText = _ref.cancelText,
          cancelText = _ref$cancelText === undefined ? '取消' : _ref$cancelText,
          _ref$title = _ref.title,
          title = _ref$title === undefined ? '温馨提示' : _ref$title,
          _ref$desc = _ref.desc,
          desc = _ref$desc === undefined ? '您确定要提交吗？' : _ref$desc,
          _ref$sync = _ref.sync,
          sync = _ref$sync === undefined ? false : _ref$sync,
          _ref$loaded = _ref.loaded,
          loaded = _ref$loaded === undefined ? false : _ref$loaded;

      this.confirmText = confirmText;
      this.cancelText = cancelText;
      this.title = title;
      this.desc = desc;
      this.showFlag = true;
      this.sync = sync;
      this.loaded = loaded;
      return new promise_default.a(function (resolve, reject) {
        _this.confirm = resolve;
        _this.cancel = reject;
      });
    },
    popHide: function popHide() {
      if (!this.sync) return;
      this.hide();
    },
    hide: function hide() {
      this.showFlag = false;
      this.cancel && this.cancel();
    },
    handlerConfirm: function handlerConfirm(loaded) {
      var _this2 = this;

      var fn = function fn() {
        _this2.showFlag = false;
        loaded();
      };
      if (this.confirm) {
        if (!this.loaded) {
          fn();
        }
        this.confirm(fn);
      } else {
        fn();
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-6e3f4a70","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$confirm/index.vue
var $confirm_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-popup',{attrs:{"value":_vm.showFlag,"pos":"center"},on:{"input":_vm.popHide}},[_c('div',{staticClass:"yt-confirm"},[_c('p',{staticClass:"yt-confirm-title"},[_vm._v(_vm._s(_vm.title))]),_vm._v(" "),_c('p',{staticClass:"yt-confirm-desc"},[_vm._v(_vm._s(_vm.desc))]),_vm._v(" "),_c('yt-btnGroup',{attrs:{"edge":"","border":"","shadow":false}},[_c('yt-btn',{attrs:{"theme":"white"},on:{"click":_vm.hide}},[_vm._v(_vm._s(_vm.cancelText)+"\n      ")]),_vm._v(" "),_c('yt-btn',{attrs:{"loading":_vm.handlerConfirm}},[_vm._v(_vm._s(_vm.confirmText))])],1)],1)])}
var $confirm_staticRenderFns = []
var $confirm_esExports = { render: $confirm_render, staticRenderFns: $confirm_staticRenderFns }
/* harmony default export */ var plugin_$confirm = ($confirm_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$confirm/index.vue
var $confirm_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $confirm___vue_template_functional__ = false
/* styles */
var $confirm___vue_styles__ = null
/* scopeId */
var $confirm___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $confirm___vue_module_identifier__ = null
var $confirm_Component = $confirm_normalizeComponent(
  $confirm,
  plugin_$confirm,
  $confirm___vue_template_functional__,
  $confirm___vue_styles__,
  $confirm___vue_scopeId__,
  $confirm___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$confirm = ($confirm_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$confirm/index.js

/**
 * Created by mas on 2018/3/9.
 */



var confirmPool = [];
var $confirm_getAnInstance = function getAnInstance() {
  if (confirmPool.length > 0) {
    return confirmPool[0];
  }
  var ConfirmConstructor = vue_esm["a" /* default */].extend(common_plugin_$confirm);
  var instance = new ConfirmConstructor({
    el: document.createElement('div')
  });
  confirmPool.push(instance);
  return instance;
};

function Confirm(options) {
  var instance = $confirm_getAnInstance();
  document.body.appendChild(instance.$el);
  return new promise_default.a(function (resolve, reject) {
    vue_esm["a" /* default */].nextTick(function () {
      instance.show(options).then(resolve, reject);
    });
  });
}
// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__("IHPB");
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$actionSheet/index.vue
//
//
//
//
//
//
//
//

/* harmony default export */ var $actionSheet = ({
  name: 'yt-actionSheet',
  data: function data() {
    return {
      showFlag: false,
      showCancel: true,
      cancel: null,
      list: []
    };
  },

  methods: {
    show: function show() {
      var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
      var cancel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
      var showCancel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

      this.list = list;
      this.cancel = cancel;
      this.showCancel = showCancel;
      this.showFlag = true;
    },
    hide: function hide() {
      this.showFlag = false;
      this.cancel && this.cancel();
    },
    handlerClick: function handlerClick(item) {
      this.showFlag = false;
      if (item && item.click) {
        item.click();
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-54a8523c","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$actionSheet/index.vue
var $actionSheet_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-popup',{attrs:{"value":_vm.showFlag,"pos":"bottom"},on:{"input":_vm.hide}},[_vm._l((_vm.list),function(item,index){return _c('yt-view',{key:index,staticClass:"yt-actionSheet-item",on:{"click":function($event){return _vm.handlerClick(item)}}},[_vm._v(_vm._s(item.text))])}),_vm._v(" "),(_vm.showCancel)?_c('yt-split'):_vm._e(),_vm._v(" "),(_vm.showCancel)?_c('yt-view',{staticClass:"yt-actionSheet-item",on:{"click":_vm.hide}},[_vm._v("取消")]):_vm._e()],2)}
var $actionSheet_staticRenderFns = []
var $actionSheet_esExports = { render: $actionSheet_render, staticRenderFns: $actionSheet_staticRenderFns }
/* harmony default export */ var plugin_$actionSheet = ($actionSheet_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$actionSheet/index.vue
var $actionSheet_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $actionSheet___vue_template_functional__ = false
/* styles */
var $actionSheet___vue_styles__ = null
/* scopeId */
var $actionSheet___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $actionSheet___vue_module_identifier__ = null
var $actionSheet_Component = $actionSheet_normalizeComponent(
  $actionSheet,
  plugin_$actionSheet,
  $actionSheet___vue_template_functional__,
  $actionSheet___vue_styles__,
  $actionSheet___vue_scopeId__,
  $actionSheet___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$actionSheet = ($actionSheet_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$actionSheet/index.js

/**
 * Created by mas on 2018/3/9.
 */



var actionSheetPool = [];
var $actionSheet_getAnInstance = function getAnInstance() {
  if (actionSheetPool.length > 0) {
    return actionSheetPool[0];
  }
  var ActionSheetConstructor = vue_esm["a" /* default */].extend(common_plugin_$actionSheet);
  var instance = new ActionSheetConstructor({
    el: document.createElement('div')
  });
  actionSheetPool.push(instance);
  return instance;
};

function ActionSheet() {
  var instance = $actionSheet_getAnInstance();
  var options = arguments;
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show.apply(instance, toConsumableArray_default()(options));
  });
  return instance;
}
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$select/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var $select = ({
  name: 'yt-select',
  data: function data() {
    return {
      showFlag: false,
      min: 1,
      list: [],
      currentValue: [],
      max: 100,
      label: '',
      val: '',
      title: ''
    };
  },

  methods: {
    show: function show() {
      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
      var _value = options._value,
          list = options.list,
          max = options.max,
          min = options.min,
          label = options.label,
          val = options.val,
          title = options.title,
          Confirm = options.Confirm,
          Cancel = options.Cancel;

      this.currentValue = [].concat(_value);
      this.list = [].concat(list);
      this.max = max;
      this.min = min;
      this.label = label;
      this.val = val;
      this.title = title;
      this.Confirm = Confirm;
      this.Cancel = Cancel;
      this.showFlag = true;
    },
    hide: function hide() {
      this.showFlag = false;
      !this.Cancel || this.Cancel();
    },
    setList: function setList(list) {
      this.list = [].concat(list);
    },
    handlerConfirm: function handlerConfirm() {
      this.Confirm(this.currentValue);
      this.showFlag = false;
    },
    handlerChange: function handlerChange(val) {
      this.currentValue = val;
      if (this.max === 1 && val.length) {
        this.handlerConfirm();
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-72b9fefe","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$select/index.vue
var $select_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-popup',{attrs:{"pos":"bottom"},model:{value:(_vm.showFlag),callback:function ($$v) {_vm.showFlag=$$v},expression:"showFlag"}},[_c('div',{staticClass:"yt-select-header yt-border-all"},[_vm._v("\n    "+_vm._s(_vm.title)+"\n    "),(_vm.list.length && _vm.max > 1)?_c('yt-btn',{staticClass:"yt-select-btn",attrs:{"size":"small","disabled":_vm.currentValue.length < _vm.min,"plain":_vm.currentValue.length < _vm.min},on:{"click":_vm.handlerConfirm}},[_vm._v("\n      确认\n    ")]):_vm._e()],1),_vm._v(" "),(_vm.list.length === 0)?_c('div',{staticClass:"yt-select-container yt-select-noInfo"},[_vm._v("暂无内容!\n  ")]):_c('yt-checkList',{staticClass:"yt-select-container",attrs:{"value":_vm.currentValue,"max":_vm.max,"val":_vm.val,"label":_vm.label,"list":_vm.list},on:{"input":_vm.handlerChange}})],1)}
var $select_staticRenderFns = []
var $select_esExports = { render: $select_render, staticRenderFns: $select_staticRenderFns }
/* harmony default export */ var plugin_$select = ($select_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$select/index.vue
var $select_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $select___vue_template_functional__ = false
/* styles */
var $select___vue_styles__ = null
/* scopeId */
var $select___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $select___vue_module_identifier__ = null
var $select_Component = $select_normalizeComponent(
  $select,
  plugin_$select,
  $select___vue_template_functional__,
  $select___vue_styles__,
  $select___vue_scopeId__,
  $select___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$select = ($select_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$select/index.js
/**
 * Created by mas on 2018/3/9.
 */


var selectPool = [];
var $select_getAnInstance = function getAnInstance() {
  if (selectPool.length > 0) {
    return selectPool[0];
  }
  var SelectConstructor = vue_esm["a" /* default */].extend(common_plugin_$select);
  var instance = new SelectConstructor({
    el: document.createElement('div')
  });
  selectPool.push(instance);
  return instance;
};

function Select(options) {
  var instance = $select_getAnInstance();
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show(options);
  });
  return instance;
}
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$cascader/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var $cascader = ({
  name: 'yt-cascader',
  computed: {
    showTool: function showTool() {
      if (this.selectList.length === 0) return true;
      var last = this.selectList[this.selectList.length - 1];
      return last && last[this.children] && last[this.children].length;
    }
  },
  methods: {
    show: function show(_ref) {
      var list = _ref.list,
          selectList = _ref.selectList,
          title = _ref.title,
          label = _ref.label,
          children = _ref.children,
          confirm = _ref.confirm,
          cancel = _ref.cancel,
          changeOnSelect = _ref.changeOnSelect;

      this.showFlag = true;
      this.list = [].concat(list);
      this.selectList = [].concat(selectList);
      this.title = title;
      this.label = label;
      this.children = children;
      this.changeOnSelect = changeOnSelect;
      this.lineIndex = selectList.length - 1;
      this.active = Math.max(this.lineIndex - 1, -1);
      this.confirm = confirm;
      this.cancel = cancel;
      this.setLine(this.lineIndex);
    },
    hide: function hide() {
      this.cancel && this.cancel();
      this.showFlag = false;
    },
    handlerConfirm: function handlerConfirm() {
      this.confirm && this.confirm(this.selectList);
      this.showFlag = false;
    },
    handlerSelect: function handlerSelect(item, panelIndex) {
      var len = this.selectList.length;
      if (len) {
        if (panelIndex === -1) {
          if (item && item[this.children] && item[this.children].length) {
            if (this.selectList[0] === item) {
              this.active = 0;
              this.lineIndex = this.selectList[1] ? 1 : -1;
              this.setLine(this.lineIndex);
            } else {
              this.selectList = [item];
              this.active = panelIndex + 1;
              this.lineIndex = -1;
              this.setLine(this.lineIndex);
            }
          } else {
            if (this.selectList[0] === item) {} else {
              this.selectList = [item];
            }
            this.doClose();
          }
        } else {
          if (item && item[this.children] && item[this.children].length) {
            if (this.selectList[panelIndex + 1] === item) {
              this.active = panelIndex + 1;
              this.lineIndex = panelIndex + 2 >= len ? -1 : panelIndex + 2;
              this.setLine(this.lineIndex);
            } else {
              this.selectList = [].concat(this.selectList.slice(0, panelIndex + 1));
              this.selectList.push(item);
              this.active = panelIndex + 1;
              this.lineIndex = -1;
              this.setLine(this.lineIndex);
            }
          } else {
            if (this.selectList[panelIndex + 1] === item) {} else {
              this.selectList = [].concat(this.selectList.slice(0, panelIndex + 1));
              this.selectList.push(item);
            }
            this.doClose();
          }
        }
      } else {
        this.selectList.push(item);
        if (item && item[this.children] && item[this.children].length) {
          this.active = panelIndex + 1;
          this.lineIndex = -1;
          this.setLine(this.lineIndex);
        } else {
          this.doClose();
        }
      }
    },
    handlerClickItem: function handlerClickItem(index) {
      this.active = index - 1;
      this.lineIndex = index;
      this.setLine(this.lineIndex);
    },
    handlerClickTool: function handlerClickTool(index) {
      this.active = this.selectList.length - 1;
      this.lineIndex = index;
      this.setLine(this.lineIndex);
    },
    doClose: function doClose() {
      this.lineIndex = this.selectList.length - 1;
      this.setLine(this.lineIndex);
      this.handlerConfirm();
    },
    setLine: function setLine(index) {
      var _this = this;

      this.$nextTick(function () {
        var line = _this.$refs.line;
        if (!line) return;
        var tool = _this.$refs.tool;
        if (index === -1) {
          if (!tool) return;
          line.style = '\n          left: ' + tool.offsetLeft + 'px;\n          width: ' + tool.offsetWidth + 'px;\n         ';
        } else {
          var tab = _this.$refs.tab[index];
          if (!tab) return;
          line.style = '\n          left: ' + tab.offsetLeft + 'px;\n          width: ' + tab.offsetWidth + 'px;\n         ';
        }
      });
    }
  },
  data: function data() {
    return {
      showFlag: false,
      list: [],
      selectList: [],
      title: '',
      label: '',
      children: '',
      lineIndex: -1,
      active: -1,
      confirm: null,
      cancel: null,
      changeOnSelect: false
    };
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-e51f8422","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$cascader/index.vue
var $cascader_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-popup',{attrs:{"value":_vm.showFlag,"pos":"bottom"},on:{"input":_vm.hide}},[_c('div',{staticClass:"yt-cascader"},[_c('div',{staticClass:"yt-cascader-title"},[_vm._v("\n      "+_vm._s(_vm.title)+"\n      "),(_vm.changeOnSelect)?_c('yt-btn',{staticClass:"yt-cascader-btn",attrs:{"size":"small","disabled":!_vm.selectList.length,"plain":!_vm.selectList.length},on:{"click":_vm.handlerConfirm}},[_vm._v("\n        确认\n      ")]):_vm._e()],1),_vm._v(" "),_c('div',{staticClass:"yt-cascader-select"},[_vm._l((_vm.selectList),function(item,index){return _c('span',{key:index,ref:"tab",refInFor:true,staticClass:"yt-cascader-item",class:{ 'is-active': _vm.lineIndex === index },on:{"click":function($event){return _vm.handlerClickItem(index)}}},[_vm._v(_vm._s(item[_vm.label]))])}),_vm._v(" "),(_vm.showTool)?_c('span',{ref:"tool",staticClass:"yt-cascader-item",class:{ 'is-active': _vm.lineIndex === -1 },on:{"click":function($event){return _vm.handlerClickTool(-1)}}},[_vm._v("请选择")]):_vm._e(),_vm._v(" "),_c('span',{ref:"line",staticClass:"yt-cascader-line"})],2),_vm._v(" "),(_vm.active === -1)?_c('div',{staticClass:"yt-cascader-panel yt-scroll"},_vm._l((_vm.list),function(child,index){return _c('p',{key:index,staticClass:"yt-cascader-row",class:{'is-select': _vm.selectList.indexOf(child) > -1},on:{"click":function($event){return _vm.handlerSelect(child, -1)}}},[_vm._v(_vm._s(child[_vm.label]))])}),0):_vm._e(),_vm._v(" "),_vm._l((_vm.selectList),function(item,index){return (_vm.active === index)?_c('div',{key:index,staticClass:"yt-cascader-panel yt-scroll"},_vm._l((item[_vm.children]),function(child,index2){return _c('p',{key:index2,staticClass:"yt-cascader-row",class:{'is-select': _vm.selectList.indexOf(child) > -1},on:{"click":function($event){return _vm.handlerSelect(child, index)}}},[_vm._v("\n        "+_vm._s(child[_vm.label]))])}),0):_vm._e()})],2)])}
var $cascader_staticRenderFns = []
var $cascader_esExports = { render: $cascader_render, staticRenderFns: $cascader_staticRenderFns }
/* harmony default export */ var plugin_$cascader = ($cascader_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$cascader/index.vue
var $cascader_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $cascader___vue_template_functional__ = false
/* styles */
var $cascader___vue_styles__ = null
/* scopeId */
var $cascader___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $cascader___vue_module_identifier__ = null
var $cascader_Component = $cascader_normalizeComponent(
  $cascader,
  plugin_$cascader,
  $cascader___vue_template_functional__,
  $cascader___vue_styles__,
  $cascader___vue_scopeId__,
  $cascader___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$cascader = ($cascader_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$cascader/index.js
/**
 * Created by mas on 2018/3/9.
 */


var cascaderPool = [];
var $cascader_getAnInstance = function getAnInstance() {
  if (cascaderPool.length > 0) {
    return cascaderPool[0];
  }
  var CascaderConstructor = vue_esm["a" /* default */].extend(common_plugin_$cascader);
  var instance = new CascaderConstructor({
    el: document.createElement('div')
  });
  cascaderPool.push(instance);
  return instance;
};

function Cascader(options) {
  var instance = $cascader_getAnInstance();
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show(options);
  });
  return instance;
}
// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/core-js/array/from.js
var from = __webpack_require__("kfHR");
var from_default = /*#__PURE__*/__webpack_require__.n(from);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$picker/picker.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var picker = ({
  name: 'yt-picker-item',
  data: function data() {
    return {
      spin: { start: -9, end: 9, branch: 9 },
      finger: { startY: 0, lastY: 0, startTime: 0, lastTime: 0, transformY: 0 }
    };
  },

  props: {
    name: String,
    listData: {
      type: Array,
      required: true
    },
    type: {
      type: String,
      default: 'line'
    },
    value: {}
  },
  computed: {
    renderData: function renderData() {
      var temp = [];
      for (var k = this.spin.start; k <= this.spin.end; k++) {
        var data = {
          value: this.getSpinData(k),
          index: k
        };
        temp.push(data);
      }
      return temp;
    }
  },
  mounted: function mounted() {
    /* 事件绑定 */
    this.$el.addEventListener('touchstart', this.itemTouchStart);
    this.$el.addEventListener('touchmove', this.itemTouchMove);
    this.$el.addEventListener('touchend', this.itemTouchEnd);
    /* 初始化状态 */
    this.initState();
  },

  methods: {
    initState: function initState() {
      var index = this.listData.indexOf(this.value);
      if (index === -1) {
        this.setListTransform();
        this.getPickValue(0);
      } else {
        var move = index * 34;
        /* 因为往上滑动所以是负 */
        this.setStyle(-move);
        this.setListTransform(-move, -move);
      }
    },

    /* 根据type 控制滚轮显示效果 */
    setHidden: function setHidden(index) {
      if (this.type === 'line') {
        return index < 0 || index > this.listData.length - 1;
      } else {
        return false;
      }
    },
    setWheelItemDeg: function setWheelItemDeg(index) {
      return {
        transform: 'rotate3d(1, 0, 0, ' + -index * 20 % 360 + 'deg) translate3d(0px, 0px, 100px)'
      };
    },
    setWheelDeg: function setWheelDeg(updateDeg, type) {
      var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1000;

      if (type === 'end') {
        this.$refs.wheel.style.webkitTransition = 'transform ' + time + 'ms cubic-bezier(0.19, 1, 0.22, 1)';
        this.$refs.wheel.style.webkitTransform = 'rotate3d(1, 0, 0, ' + updateDeg + 'deg)';
      } else {
        this.$refs.wheel.style.webkitTransition = '';
        this.$refs.wheel.style.webkitTransform = 'rotate3d(1, 0, 0, ' + updateDeg + 'deg)';
      }
    },
    setListTransform: function setListTransform() {
      var translateY = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
      var marginTop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
      var type = arguments[2];
      var time = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1000;

      if (type === 'end') {
        this.$refs.list.style.webkitTransition = 'transform ' + time + 'ms cubic-bezier(0.19, 1, 0.22, 1)';
        this.$refs.list.style.webkitTransform = 'translateY(' + (translateY - this.spin.branch * 34) + 'px)';
        this.$refs.list.style.marginTop = -marginTop + 'px';
        this.$refs.list.setAttribute('scroll', translateY);
      } else {
        this.$refs.list.style.webkitTransition = '';
        this.$refs.list.style.webkitTransform = 'translateY(' + (translateY - this.spin.branch * 34) + 'px)';
        this.$refs.list.style.marginTop = -marginTop + 'px';
        this.$refs.list.setAttribute('scroll', translateY);
      }
    },
    itemTouchStart: function itemTouchStart(event) {
      var finger = event.changedTouches[0];
      this.finger.startY = finger.pageY;
      this.finger.startTime = event.timestamp || Date.now();
      this.finger.transformY = this.$refs.list.getAttribute('scroll');
      event.preventDefault();
    },
    itemTouchMove: function itemTouchMove(event) {
      var finger = event.changedTouches[0];
      this.finger.lastY = finger.pageY;
      this.finger.lastTime = event.timestamp || Date.now();
      /* 设置css */
      var move = this.finger.lastY - this.finger.startY;
      this.setStyle(move);
      event.preventDefault();
    },
    itemTouchEnd: function itemTouchEnd(event) {
      var finger = event.changedTouches[0];
      this.finger.lastY = finger.pageY;
      this.finger.lastTime = event.timestamp || Date.now();
      var move = this.finger.lastY - this.finger.startY;
      /* 计算速度 */
      /* 速度计算说明
       * 当时间小于300毫秒 最后的移动距离等于 move + 减速运动距离
       * */
      var time = this.finger.lastTime - this.finger.startTime;
      var v = move / time;
      /* 减速加速度a */
      var a = 1.8;
      /* 设置css */
      if (time <= 300) {
        move = v * a * time;
        time = 1000 + time * a;
        this.setStyle(move, 'end', time);
      } else {
        this.setStyle(move, 'end');
      }
    },

    /* 设置css */
    setStyle: function setStyle(move, type, time) {
      var singleHeight = 34;
      var deg = 20;
      var singleDeg = deg / singleHeight;
      var currentListMove = this.finger.transformY;
      var updateMove = move + Number(currentListMove);
      /* 根据滚轮类型 line or cycle 判断 updateMove最大距离 */
      if (this.type === 'line') {
        if (updateMove > 0) {
          updateMove = 0;
        }
        if (updateMove < -(this.listData.length - 1) * singleHeight) {
          updateMove = -(this.listData.length - 1) * singleHeight;
        }
      }
      var updateDeg = -updateMove * singleDeg;
      var spinAim = Math.round(updateDeg / 20);
      var margin = Math.round(updateMove / singleHeight) * singleHeight; // 如果不这么写 会导致没有滚动效果
      /* 计算touchEnd移动的整数距离 */
      var endMove = margin;
      var endDeg = Math.round(updateDeg / deg) * deg;
      if (type === 'end') {
        this.setListTransform(endMove, margin, type, time);
        this.setWheelDeg(endDeg, type, time);
        this.getPickValue(endMove);
      } else {
        this.setListTransform(updateMove, margin);
        this.setWheelDeg(updateDeg);
      }
      this.updateSpin(spinAim);
    },

    /* 更新spin */
    updateSpin: function updateSpin(spinAim) {
      this.spin.start = this.spin.branch * -1 + spinAim;
      this.spin.end = this.spin.start + this.spin.branch * 2;
    },

    /* 获取spin 数据 */
    getSpinData: function getSpinData(index) {
      index = index % this.listData.length;
      return this.listData[index >= 0 ? index : index + this.listData.length];
    },

    /* 获取选中值 */
    getPickValue: function getPickValue(move) {
      var index = Math.abs(move / 34);
      var len = this.listData.length;
      index = index % len;
      index = move <= 0 ? index : len - index;
      var pickValue = this.listData[index];
      this.$emit('input', pickValue, this.name);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.$el.removeEventListener('touchstart', this.itemTouchStart);
    this.$el.removeEventListener('touchmove', this.itemTouchMove);
    this.$el.removeEventListener('touchend', this.itemTouchEnd);
  },

  watch: {
    'renderData': function renderData(val, oldVal) {
      var lastIndex = 0;
      for (var i = 0; i < oldVal.length; i++) {
        if (oldVal[i].value === this.value) {
          lastIndex = oldVal[i].index;
          break;
        }
      }
      for (var _i = 0; _i < val.length; _i++) {
        if (val[_i].index === lastIndex) {
          this.$emit('input', val[_i].value, this.name);
          break;
        }
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-17ead892","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$picker/picker.vue
var picker_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-picker-select-item"},[_c('div',{staticClass:"yt-picker-select-line"}),_vm._v(" "),_c('div',{staticClass:"yt-picker-select-list"},[_c('ul',{ref:"list",staticClass:"yt-picker-select-ul"},_vm._l((_vm.renderData),function(el,index){return _c('li',{key:index,staticClass:"yt-picker-select-list-item",class:{'hidden':_vm.setHidden(el.index)}},[_vm._v(_vm._s(el.value)+"\n      ")])}),0)]),_vm._v(" "),_c('ul',{ref:"wheel",staticClass:"yt-picker-select-wheel"},_vm._l((_vm.renderData),function(el,index){return _c('li',{key:index,staticClass:"yt-picker-select-wheel-item",class:{'hidden':_vm.setHidden(el.index)},style:(_vm.setWheelItemDeg(el.index)),attrs:{"index":el.index}},[_vm._v(_vm._s(el.value)+"\n    ")])}),0)])}
var picker_staticRenderFns = []
var picker_esExports = { render: picker_render, staticRenderFns: picker_staticRenderFns }
/* harmony default export */ var $picker_picker = (picker_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$picker/picker.vue
var picker_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var picker___vue_template_functional__ = false
/* styles */
var picker___vue_styles__ = null
/* scopeId */
var picker___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var picker___vue_module_identifier__ = null
var picker_Component = picker_normalizeComponent(
  picker,
  $picker_picker,
  picker___vue_template_functional__,
  picker___vue_styles__,
  picker___vue_scopeId__,
  picker___vue_module_identifier__
)

/* harmony default export */ var plugin_$picker_picker = (picker_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$picker/index.vue

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




var _TEMPLATE = {
  year: '年',
  month: '月',
  day: '日',
  hour: '时',
  minute: '分'
};
/* harmony default export */ var $picker = ({
  name: 'yt-picker',
  components: {
    picker: plugin_$picker_picker
  },
  computed: {
    TEMPLATE: function TEMPLATE() {
      return this.showTemplate ? _TEMPLATE : {
        year: '',
        month: '',
        day: '',
        hour: '',
        minute: ''
      };
    },
    days: function days() {
      var section = [1, 31];
      var isR = this.curYear % 4 === 0 && this.curYear % 100 !== 0 || this.curYear % 400 === 0;
      var c1 = [1, 3, 5, 7, 8, 10, 12].join().indexOf(this.curMonth);
      if (this.curMonth === 2) {
        if (isR) {
          section = [1, 29];
        } else {
          section = [1, 28];
        }
      } else if (c1 < 0) {
        section = [1, 30];
      } else {
        section = [1, 31];
      }
      return section;
    }
  },
  data: function data() {
    return {
      title: '',
      showTemplate: true,
      showFlag: false,
      options: {},
      curYear: null,
      curMonth: null,
      curDay: null,
      curHour: null,
      curMinute: null,
      years: [2000, 2050],
      months: [1, 12],
      hours: [0, 23],
      minutes: [0, 59],
      format: '',
      confirm: null
    };
  },

  methods: {
    GetVisible: function GetVisible(key) {
      if (this.format.indexOf(key) < 0) return false;
      return true;
    },
    GetListFromSection: function GetListFromSection(section, key) {
      return from_default()({ length: section[1] - section[0] + 1 }, function (value, index) {
        return section[0] + index + key;
      });
    },
    show: function show() {
      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      this.showFlag = true;
      var format = options.format,
          current = options.current,
          confirm = options.confirm,
          showTemplate = options.showTemplate,
          title = options.title;

      this.title = title;
      this.showTemplate = showTemplate;
      var date = new Date(Date.now());
      if (current) {
        if (typeof current === 'string') {
          date = new Date(Date.parse(current));
        } else if (typeof current === 'number') {
          date = new Date(current);
        } else if (current instanceof Date) {
          date = current;
        }
      }
      this.curYear = date.getFullYear() + this.TEMPLATE.year;
      this.curMonth = date.getMonth() + 1 + this.TEMPLATE.month;
      this.curDay = date.getDate() + this.TEMPLATE.day;
      this.curHour = date.getHours() + this.TEMPLATE.hour;
      this.curMinute = date.getMinutes() + this.TEMPLATE.minute;
      this.format = format;
      this.confirm = confirm;
    },
    handlerConfirm: function handlerConfirm() {
      if (this.confirm) {
        var time = this.curYear + '-' + this.curMonth + '-' + this.curDay + ' ' + this.curHour + ':' + this.curMinute;
        time = Object(utils["j" /* formatTime */])(time, this.format);
        this.confirm(time);
      }
      this.showFlag = false;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-574a0b4f","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$picker/index.vue
var $picker_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('yt-popup',{model:{value:(_vm.showFlag),callback:function ($$v) {_vm.showFlag=$$v},expression:"showFlag"}},[_c('div',{staticClass:"yt-picker-header yt-border-all"},[_vm._v("\n    "+_vm._s(_vm.title)+"\n    "),_c('yt-btn',{staticClass:"yt-picker-btn",attrs:{"size":"small"},on:{"click":_vm.handlerConfirm}},[_vm._v("确认")])],1),_vm._v(" "),_c('div',{staticClass:"yt-picker-wrapper"},[(_vm.GetVisible('YYYY'))?_c('picker',{attrs:{"name":"year","listData":_vm.GetListFromSection(_vm.years, _vm.TEMPLATE.year),"type":"circle"},model:{value:(_vm.curYear),callback:function ($$v) {_vm.curYear=$$v},expression:"curYear"}}):_vm._e(),_vm._v(" "),(_vm.GetVisible('MM'))?_c('picker',{attrs:{"name":"month","listData":_vm.GetListFromSection(_vm.months, _vm.TEMPLATE.month),"type":"circle"},model:{value:(_vm.curMonth),callback:function ($$v) {_vm.curMonth=$$v},expression:"curMonth"}}):_vm._e(),_vm._v(" "),(_vm.GetVisible('DD'))?_c('picker',{attrs:{"name":"day","listData":_vm.GetListFromSection(_vm.days, _vm.TEMPLATE.day),"type":"circle"},model:{value:(_vm.curDay),callback:function ($$v) {_vm.curDay=$$v},expression:"curDay"}}):_vm._e(),_vm._v(" "),(_vm.GetVisible('HH'))?_c('picker',{attrs:{"name":"hour","listData":_vm.GetListFromSection(_vm.hours, _vm.TEMPLATE.hour),"type":"circle"},model:{value:(_vm.curHour),callback:function ($$v) {_vm.curHour=$$v},expression:"curHour"}}):_vm._e(),_vm._v(" "),(_vm.GetVisible('mm'))?_c('picker',{attrs:{"name":"minute","listData":_vm.GetListFromSection(_vm.minutes, _vm.TEMPLATE.minute),"type":"circle"},model:{value:(_vm.curMinute),callback:function ($$v) {_vm.curMinute=$$v},expression:"curMinute"}}):_vm._e()],1)])}
var $picker_staticRenderFns = []
var $picker_esExports = { render: $picker_render, staticRenderFns: $picker_staticRenderFns }
/* harmony default export */ var plugin_$picker = ($picker_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$picker/index.vue
var $picker_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $picker___vue_template_functional__ = false
/* styles */
var $picker___vue_styles__ = null
/* scopeId */
var $picker___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $picker___vue_module_identifier__ = null
var $picker_Component = $picker_normalizeComponent(
  $picker,
  plugin_$picker,
  $picker___vue_template_functional__,
  $picker___vue_styles__,
  $picker___vue_scopeId__,
  $picker___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$picker = ($picker_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$picker/index.js
/**
 * Created by mas on 2018/3/9.
 */


var pickerPool = [];
var $picker_getAnInstance = function getAnInstance() {
  if (pickerPool.length > 0) {
    return pickerPool[0];
  }
  var PickerConstructor = vue_esm["a" /* default */].extend(common_plugin_$picker);
  var instance = new PickerConstructor({
    el: document.createElement('div')
  });
  pickerPool.push(instance);
  return instance;
};

function Picker(options) {
  var instance = $picker_getAnInstance();
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show(options);
  });
  return instance;
}
// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$loading/index.vue

//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ var $loading = ({
  name: 'yt-loading',
  data: function data() {
    return {
      showFlag: false,
      text: '请稍后...'
    };
  },

  methods: {
    show: function show() {
      var _this = this;

      this.timeout = setTimeout(function () {
        _this.showFlag = true;
      }, 500);
    },
    hide: function hide() {
      if (this.timeout) clearTimeout(this.timeout);
      this.showFlag = false;
    },
    load: function load(options) {
      var _this2 = this;

      return new promise_default.a(function (resolve, reject) {
        if (!options || options.length === 0) {
          return reject(new Error('最少传入一个promise'));
        }
        _this2.show();
        return promise_default.a.all(options).then(function (results) {
          _this2.hide();
          return resolve(options.length === 1 ? results[0] : results);
        }).catch(function (error) {
          _this2.hide();
          return reject(error);
        });
      });
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-366c74c6","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$loading/index.vue
var $loading_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"yt-fade"}},[(_vm.showFlag)?_c('div',{staticClass:"yt-loading"},[_c('div',{staticClass:"yt-loading-wrap"},[_c('yt-spinner',{attrs:{"type":"ios-small","color":"#fff"}}),_vm._v(" "),_c('span',{staticClass:"yt-loading-text"},[_vm._v(_vm._s(_vm.text))])],1)]):_vm._e()])}
var $loading_staticRenderFns = []
var $loading_esExports = { render: $loading_render, staticRenderFns: $loading_staticRenderFns }
/* harmony default export */ var plugin_$loading = ($loading_esExports);
// CONCATENATED MODULE: ./src/common/plugin/$loading/index.vue
var $loading_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var $loading___vue_template_functional__ = false
/* styles */
var $loading___vue_styles__ = null
/* scopeId */
var $loading___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var $loading___vue_module_identifier__ = null
var $loading_Component = $loading_normalizeComponent(
  $loading,
  plugin_$loading,
  $loading___vue_template_functional__,
  $loading___vue_styles__,
  $loading___vue_scopeId__,
  $loading___vue_module_identifier__
)

/* harmony default export */ var common_plugin_$loading = ($loading_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$loading/index.js


/**
 * Created by mas on 2018/3/9.
 */



var loadingPool = [];
var $loading_getAnInstance = function getAnInstance() {
  if (loadingPool.length > 0) return loadingPool[0];
  var LoadingConstructor = vue_esm["a" /* default */].extend(common_plugin_$loading);
  var instance = new LoadingConstructor({ el: document.createElement('div') });
  document.body.appendChild(instance.$el);
  loadingPool.push(instance);
  return instance;
};

function Loading() {
  var instance = $loading_getAnInstance();
  var options = arguments;
  return new promise_default.a(function (resolve, reject) {
    vue_esm["a" /* default */].nextTick(function () {
      instance.load([].concat(toConsumableArray_default()(options))).then(resolve).catch(reject);
    });
  });
}
// CONCATENATED MODULE: ./src/common/plugin/service.js
/**
 * Created by mas on 2018/3/17.
 */








// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_call/index.vue

//
//
//
//
//
//
//
//
//




/* harmony default export */ var _call = ({
  name: 'yt-call',
  props: {
    /**
     * 电话号码
     */
    tel: {
      required: true
    }
  },
  computed: {
    currentTel: function currentTel() {
      return Array.isArray(this.tel) ? this.tel.map(function (item) {
        return item.tel;
      }).filter(function (v) {
        return v;
      }).join(",") : this.tel;
    }
  },
  methods: {
    callPhone: function callPhone() {
      var _this = this;

      if (!this.tel) return;
      var actions = [];
      if (Array.isArray(this.tel)) {
        actions = this.tel.map(function (item) {
          return extends_default()({}, item, {
            click: function click() {
              utils["c" /* bridge */].CallPhone(item.tel + '');
            }
          });
        });
      } else {
        actions = [{
          text: '拨打电话',
          click: function click() {
            utils["c" /* bridge */].CallPhone(_this.tel + '');
          }
        }];
      }
      ActionSheet(actions);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-35042b1d","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_call/index.vue
var _call_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',_vm._b({staticClass:"yt-call",on:{"click":function($event){$event.stopPropagation();$event.preventDefault();return _vm.callPhone($event)}}},'span',_vm.$attrs,false),[_vm._v("\n  "+_vm._s(_vm.currentTel)+"\n")])}
var _call_staticRenderFns = []
var _call_esExports = { render: _call_render, staticRenderFns: _call_staticRenderFns }
/* harmony default export */ var plugin__call = (_call_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_call/index.vue
var _call_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _call___vue_template_functional__ = false
/* styles */
var _call___vue_styles__ = null
/* scopeId */
var _call___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _call___vue_module_identifier__ = null
var _call_Component = _call_normalizeComponent(
  _call,
  plugin__call,
  _call___vue_template_functional__,
  _call___vue_styles__,
  _call___vue_scopeId__,
  _call___vue_module_identifier__
)

/* harmony default export */ var common_plugin__call = (_call_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_cascader/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//




/* harmony default export */ var _cascader = ({
  name: 'yt-cellCascader',
  props: {
    /**
     * cell左侧的内容
     */
    desc: {
      type: String,
      default: ''
    },
    /**
     * cell右侧没有选中时候的文字
     */
    text: {
      type: String,
      default: '请选择'
    },
    /**
     * 弹出框的标题
     */
    title: {
      type: String,
      default: '请选择'
    },
    /**
     * 弹出框列表中显示值所对应对象的字段
     */
    label: {
      type: String,
      default: 'label'
    },
    /**
     * 弹出框列表中value值所对应对象的字段
     */
    val: {
      type: String,
      default: 'value'
    },
    /**
     * 弹出框列表中children所对应对象的字段
     */
    children: {
      type: String,
      default: 'children'
    },
    /**
     * 弹出框的数据
     */
    list: {
      type: Array,
      require: true,
      default: function _default() {
        return [];
      }
    },
    /**
     * 当前选中的值
     */
    value: {
      type: [Array, String],
      require: true
    },
    /**
     * 默认为false,必须选择到叶子节点才能关闭。为true时，选择一个即可关闭
     */
    changeOnSelect: {
      type: Boolean,
      default: false
    },
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * 选择完毕以后，显示的内容是否只显示最后一级。默认显示全部
     */
    showLast: {
      type: Boolean,
      default: false
    },
    /**
     * 定义输出
     */
    output: {
      type: String,
      default: "array"
    },
    /**
     * border  取值 none | half | all
     */
    border: {
      type: String,
      default: 'half'
    }
  },
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    }
  },
  data: function data() {
    return {
      isOpen: false,
      selectList: []
    };
  },

  methods: {
    handlerSelect: function handlerSelect() {
      if (this._disabled) return;
      this.isOpen = true;
      Cascader(this);
    },
    confirm: function confirm(res) {
      var _this = this;

      if (this._disabled) return;
      this.isOpen = false;
      var results = res.map(function (item) {
        return item[_this.val];
      });
      if (this.output === "string") {
        results = results.length ? results[results.length - 1] : "";
      }
      this.$emit('input', results);
    },
    cancel: function cancel() {
      this.isOpen = false;
    },
    setSelectList: function setSelectList() {
      if (this.output === "string") {
        this.selectList = Object(utils["i" /* findParentFromTree */])(this.list, this.value, this.val, this.children);
      } else if (this.output === "array") {
        this.selectList = Object(utils["h" /* findNodeFromTree */])(this.list, this.value || [], this.val, this.children);
      }
      if (this.isOpen) {
        this.handlerSelect();
      }
    }
  },
  watch: {
    value: {
      immediate: true,
      handler: function handler() {
        this.setSelectList();
      }
    },
    list: {
      immediate: true,
      handler: function handler() {
        this.setSelectList();
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5904b3c3","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_cascader/index.vue
var _cascader_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-cellCascader",class:("yt-border-" + _vm.border)},[_c('span',{staticClass:"yt-cellCascader-desc"},[_vm._v(_vm._s(_vm.desc))]),_vm._v(" "),_c('span',{staticClass:"yt-cellCascader-wrap",on:{"click":_vm.handlerSelect}},[(_vm.text && !_vm.selectList.length)?_c('span',[_vm._v(_vm._s(_vm.text)),_c('i',{staticClass:"yt-cellCascader-right yt-icon yt-icon-right"})]):_c('span',{staticClass:"yt-cellCascader-tags"},[_vm._t("tag",_vm._l((_vm.selectList),function(tag,index){return (!_vm.showLast || (index + 1 === _vm.selectList.length))?_c('span',{key:index,staticClass:"yt-cellCascader-tag"},[_c('yt-tag',{attrs:{"size":"mini"}},[_vm._v(_vm._s(tag[_vm.label]))])],1):_vm._e()}),{"data":_vm.selectList})],2)])])}
var _cascader_staticRenderFns = []
var _cascader_esExports = { render: _cascader_render, staticRenderFns: _cascader_staticRenderFns }
/* harmony default export */ var plugin__cascader = (_cascader_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_cascader/index.vue
var _cascader_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _cascader___vue_template_functional__ = false
/* styles */
var _cascader___vue_styles__ = null
/* scopeId */
var _cascader___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _cascader___vue_module_identifier__ = null
var _cascader_Component = _cascader_normalizeComponent(
  _cascader,
  plugin__cascader,
  _cascader___vue_template_functional__,
  _cascader___vue_styles__,
  _cascader___vue_scopeId__,
  _cascader___vue_module_identifier__
)

/* harmony default export */ var common_plugin__cascader = (_cascader_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_select/index.vue
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ var _select = ({
  name: 'yt-cellSelect',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * 数据列表
     */
    list: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    /**
     * 未选中时候显示的文字
     */
    text: {
      type: String,
      default: '请选择'
    },
    /**
     * 弹出框显示的标题
     */
    title: {
      type: String,
      default: '请选择'
    },
    /**
     * 最小选择多少个
     */
    min: {
      type: Number,
      default: 1
    },
    /**
     * 最大选择多少个
     */
    max: {
      type: Number,
      default: 1
    },
    /**
     * 列表显示的value所对应的字段
     */
    val: {
      type: String,
      default: 'D_code'
    },
    /**
     * 列表显示的label所对应的字段
     */
    label: {
      type: String,
      default: 'D_text'
    },
    /**
     * 当max大于1时， 当前值类型为Array； 当max为1  当前值可为String, Number, Array, Object
     */
    value: {
      type: [String, Number, Array, Object],
      default: function _default() {
        return [];
      }
    },
    /**
     * 设置输出的值为object
     */
    outputObject: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    _value: {
      get: function get() {
        var _this = this;

        var val = [];
        if (this.value instanceof Array) {
          val = this.value;
        } else {
          if (this.max === 1) {
            val = this.value ? [this.value] : [];
          }
        }
        if (this.outputObject) {
          val = val.map(function (item) {
            return item[_this.val];
          });
        }
        return val;
      },
      set: function set(val) {
        var _this2 = this;

        if (this.outputObject) {
          var results = [];
          val.forEach(function (item) {
            var child = _this2.list.find(function (child) {
              return item === child[_this2.val];
            });
            !child || results.push(child);
          });
          val = results;
        }
        if (this.max === 1) {
          val = val && val.length ? val[0] : null;
        }
        this.$emit('input', val);
      }
    },
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },
    selectList: function selectList() {
      var _this3 = this;

      var results = [];
      this._value.forEach(function (item) {
        var child = _this3.list.find(function (child) {
          return item === child[_this3.val];
        });
        !child || results.push(child);
      });
      return results;
    }
  },
  data: function data() {
    return {
      isShow: false
    };
  },

  methods: {
    handlerSelect: function handlerSelect() {
      if (this._disabled) return;
      this.instance = Select(this);
      this.isShow = true;
    },
    Confirm: function Confirm(val) {
      if (this._disabled) return;
      this._value = val;
      this.isShow = false;
    },
    Cancel: function Cancel() {
      this.isShow = false;
    }
  },
  watch: {
    list: function list() {
      if (!this.isShow || !this.instance) return;
      this.instance.setList(this.list);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-244c2842","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_select/index.vue
var _select_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"yt-select",on:{"click":_vm.handlerSelect}},[(_vm.text && !_vm.selectList.length)?_c('span',[_vm._v("\n    "+_vm._s(_vm.text)+"\n    "),_c('i',{staticClass:"yt-select-right yt-icon yt-icon-right"})]):_c('span',{staticClass:"yt-select-tags"},[_vm._t("tag",_vm._l((_vm.selectList),function(tag,index){return _c('yt-tag',{key:index,staticClass:"yt-select-tag"},[_vm._v(_vm._s(tag[_vm.label])+"\n      ")])}),{"data":_vm.selectList})],2)])}
var _select_staticRenderFns = []
var _select_esExports = { render: _select_render, staticRenderFns: _select_staticRenderFns }
/* harmony default export */ var plugin__select = (_select_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_select/index.vue
var _select_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _select___vue_template_functional__ = false
/* styles */
var _select___vue_styles__ = null
/* scopeId */
var _select___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _select___vue_module_identifier__ = null
var _select_Component = _select_normalizeComponent(
  _select,
  plugin__select,
  _select___vue_template_functional__,
  _select___vue_styles__,
  _select___vue_scopeId__,
  _select___vue_module_identifier__
)

/* harmony default export */ var common_plugin__select = (_select_Component.exports);

// EXTERNAL MODULE: ./src/common/plugin/utils/moment.js
var moment = __webpack_require__("X+EP");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_time/index.vue
//
//
//
//
//
//
//




/* harmony default export */ var _time = ({
  name: 'yt-time',
  inject: {
    ytForm: {
      default: function _default() {
        return {};
      }
    }
  },
  props: {
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     * 时间取值
     * @model
     */
    value: {},
    /**
     * 时间格式  YYYY-MM-DD HH:mm
     */
    format: {
      type: String,
      default: 'YYYY-MM-DD'
    },
    /**
     * 显示文字
     */
    showTemplate: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    _disabled: function _disabled() {
      return this.disabled || (this.ytForm || {}).disabled;
    },
    currentValue: function currentValue() {
      if (!this.value) return '';
      var date = new moment["a" /* moment */](this.value);
      return date._isValid ? date.format(this.format) : this.value;
    }
  },
  methods: {
    pickTime: function pickTime() {
      var _this = this;

      if (this._disabled) return;
      Picker({
        title: '请选择时间',
        showTemplate: this.showTemplate,
        format: this.format,
        current: this.value,
        confirm: function confirm(res) {
          _this.$emit('input', res);
        }
      });
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-5078c923","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_time/index.vue
var _time_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"yt-time",on:{"click":_vm.pickTime}},[(!_vm.value)?_c('span',[_vm._v("请选择 "),_c('i',{staticClass:"yt-time-right yt-icon yt-icon-right"})]):_c('yt-tag',{staticClass:"yt-time-tag"},[_vm._v(_vm._s(_vm.currentValue))])],1)}
var _time_staticRenderFns = []
var _time_esExports = { render: _time_render, staticRenderFns: _time_staticRenderFns }
/* harmony default export */ var plugin__time = (_time_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_time/index.vue
var _time_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _time___vue_template_functional__ = false
/* styles */
var _time___vue_styles__ = null
/* scopeId */
var _time___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _time___vue_module_identifier__ = null
var _time_Component = _time_normalizeComponent(
  _time,
  plugin__time,
  _time___vue_template_functional__,
  _time___vue_styles__,
  _time___vue_scopeId__,
  _time___vue_module_identifier__
)

/* harmony default export */ var common_plugin__time = (_time_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_openFile/index.vue
//
//
//
//
//





/* harmony default export */ var _openFile = ({
  name: 'yt-openFile',
  props: {
    /**
     * 文件的路径
     */
    url: String,
    /**
     * 文件的名称
     */
    title: String,
    /**
     * 文件不存在时提示文字
     */
    errorText: {
      type: String,
      default: '暂无附件!'
    }
  },
  methods: {
    handlerClick: function handlerClick() {
      if (!this.url) {
        Object($toast["a" /* Toast */])(this.errorText);
      } else if (Object(utils["p" /* isImg */])(this.url)) {
        PreviewImg({ current: 0, list: [this.url] });
      } else if (Object(utils["q" /* isVideo */])(this.url)) {
        utils["c" /* bridge */].Play(this.url);
      } else {
        utils["c" /* bridge */].PreviewFile({ title: this.title, url: this.url });
      }
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-76fdab52","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_openFile/index.vue
var _openFile_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"yt-open-file",on:{"click":_vm.handlerClick}},[_vm._t("default")],2)}
var _openFile_staticRenderFns = []
var _openFile_esExports = { render: _openFile_render, staticRenderFns: _openFile_staticRenderFns }
/* harmony default export */ var plugin__openFile = (_openFile_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_openFile/index.vue
var _openFile_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _openFile___vue_template_functional__ = false
/* styles */
var _openFile___vue_styles__ = null
/* scopeId */
var _openFile___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _openFile___vue_module_identifier__ = null
var _openFile_Component = _openFile_normalizeComponent(
  _openFile,
  plugin__openFile,
  _openFile___vue_template_functional__,
  _openFile___vue_styles__,
  _openFile___vue_scopeId__,
  _openFile___vue_module_identifier__
)

/* harmony default export */ var common_plugin__openFile = (_openFile_Component.exports);

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/_radio/index.vue
//
//
//
//
//
//
//

/* harmony default export */ var _radio = ({
  name: 'yt-cell-radio',
  inject: {
    ytForm: {
      default: null
    }
  },
  props: {
    value: {},
    /**
     * 是否禁用
     */
    disabled: {
      type: Boolean,
      default: false
    },
    /**
     *  用于绑定input中的value   例如每一项为item  则item[val] 即为我们选中的值
     */
    val: {
      type: String,
      default: 'value'
    },
    /**
     *  用于显示的文字  例如每一项为item  则item[label] 即为显示的文字
     */
    label: {
      type: String,
      default: 'label'
    },
    /**
     *  数据列表
     */
    list: {
      type: Array,
      required: true
    },
    /**
     *  在禁用状态下，没有选中时候的默认文字
     */
    defaultText: {
      type: String,
      default: 'N/A'
    }
  },
  computed: {
    currentValue: {
      get: function get() {
        return this.value;
      },
      set: function set(val) {
        this.$emit('input', val);
      }
    },
    _disabled: function _disabled() {
      return this.disabled || this.ytForm && this.ytForm.disabled;
    },
    currentLabel: function currentLabel() {
      var _this = this;

      var obj = this.list.find(function (v) {
        return v[_this.val] === _this.currentValue;
      });
      return obj ? obj[this.label] : this.defaultText;
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-613bfe10","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/_radio/index.vue
var _radio_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm._disabled)?_c('yt-tag',{staticStyle:{"font-size":"12px"}},[_vm._v(_vm._s(_vm.currentLabel))]):_c('yt-radio-list',_vm._b({attrs:{"list":_vm.list,"label":_vm.label,"val":_vm.val},model:{value:(_vm.currentValue),callback:function ($$v) {_vm.currentValue=$$v},expression:"currentValue"}},'yt-radio-list',_vm.$attrs,false))],1)}
var _radio_staticRenderFns = []
var _radio_esExports = { render: _radio_render, staticRenderFns: _radio_staticRenderFns }
/* harmony default export */ var plugin__radio = (_radio_esExports);
// CONCATENATED MODULE: ./src/common/plugin/_radio/index.vue
var _radio_normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var _radio___vue_template_functional__ = false
/* styles */
var _radio___vue_styles__ = null
/* scopeId */
var _radio___vue_scopeId__ = null
/* moduleIdentifier (server only) */
var _radio___vue_module_identifier__ = null
var _radio_Component = _radio_normalizeComponent(
  _radio,
  plugin__radio,
  _radio___vue_template_functional__,
  _radio___vue_styles__,
  _radio___vue_scopeId__,
  _radio___vue_module_identifier__
)

/* harmony default export */ var common_plugin__radio = (_radio_Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/component.js
/**
 * Created by mas on 2017/9/19.
 */






















































var components = {
  View: common_plugin_view,
  Cell: common_plugin_cell,
  Copy: common_plugin_copy,
  Split: common_plugin_split,
  CheckBox: common_plugin_checkBox,
  Switch: src_common_plugin_switch,
  Radio: src_common_plugin_radio,
  Rate: common_plugin_rate,
  Count: src_common_plugin_count,
  Input: common_plugin_input,
  Sticky: common_plugin_sticky,
  Badge: common_plugin_badge,
  Btn: common_plugin_btn,
  BtnGroup: common_plugin_btnGroup,
  Tag: common_plugin_tag,
  Card: common_plugin_card,
  Grid: common_plugin_grid,
  GridItem: plugin_grid_gridItem,
  Header: common_plugin_header,
  HeaderBtn: plugin_header_headerBtn,
  ButtonTab: common_plugin_buttonTab,
  Page: common_plugin_page,
  Form: src_common_plugin_form,
  TimeLine: common_plugin_timeLine,
  Popup: common_plugin_popup,
  Screen: common_plugin_screen,
  ScreenPanel: plugin_screen_screenPanel,
  InlineSelect: common_plugin_inlineSelect,
  CellSwipe: common_plugin_cellSwipe,
  Tabbar: plugin_tabbar,
  TabbarPanel: plugin_tabbar_tabbarPanel,
  TabbarQuick: plugin_tabbar_tabbarQuick,
  TabPanles: common_plugin_tabPanles,
  Tabs: common_plugin_tabs,
  TabPanel: plugin_tabs_tabPanel,
  File: src_common_plugin_file,
  CheckList: common_plugin_checkList,
  RadioList: common_plugin_radioList,
  Collapse: common_plugin_collapse,
  CollapseTransition: plugin_collapse_collapseTransition,
  Slider: common_plugin_slider,
  Pull: common_plugin_pull,
  Group: common_plugin_group,
  Spinner: src_common_plugin_spinner,
  Textarea: src_common_plugin_textarea,
  Progress: common_plugin_progress,
  CellCall: common_plugin__call,
  CellCascader: common_plugin__cascader,
  CellSelect: common_plugin__select,
  CellTime: common_plugin__time,
  CellOpenFile: common_plugin__openFile,
  CellRadio: common_plugin__radio,
  ShopCart: common_plugin_shopCart
};

/* harmony default export */ var component = ({
  install: function install(Vue) {
    for (var key in components) {
      Vue.component('yt' + key, components[key]);
    }
  }
});
// CONCATENATED MODULE: ./src/common/plugin/module.js


/* harmony default export */ var plugin_module = ({
  install: function install(Vue) {
    for (var key in service_namespaceObject) {
      Vue.prototype['$' + key] = service_namespaceObject[key];
    }
  }
});
// EXTERNAL MODULE: ./node_modules/_lodash@4.17.11@lodash/lodash.js
var lodash = __webpack_require__("psq8");
var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);

// CONCATENATED MODULE: ./src/common/plugin/index.js
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return $toast["a" /* Toast */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return Confirm; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return ActionSheet; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return Select; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return PreviewImg; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return Cascader; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "a", function() { return Picker; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return Loading; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return /* unused reexport */undefined; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["g" /* delayed */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["p" /* isImg */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["q" /* isVideo */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["v" /* throttle */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return /* unused reexport */undefined; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["t" /* requestAnimationFrame */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["n" /* groupDataByTime */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["f" /* clickoutside */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["a" /* PackingEvent */]; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "c", function() { return utils["d" /* bus */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["r" /* merge */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["i" /* findParentFromTree */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["h" /* findNodeFromTree */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["m" /* getOffset */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["o" /* hasClass */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["s" /* parseTimeToString */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["b" /* array2String */]; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "e", function() { return utils["j" /* formatTime */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["k" /* friendlyFileSize */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["l" /* friendlyTime */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["u" /* securityGetVal */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return /* unused reexport */undefined; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["w" /* validator */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return /* unused reexport */undefined; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return utils["e" /* calendarTime */]; });
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "b", function() { return utils["c" /* bridge */]; });
/* unused concated harmony import null */
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, false, function() { return /* unused reexport */undefined; });
/**
 * Created by mas on 2018/3/17
 */









/* harmony default export */ var common_plugin = __webpack_exports__["d"] = ({
  install: function install(Vue) {
    Vue.use(router);
    Vue.use(filters);
    Vue.use(component);
    Vue.use(plugin_module);
    Vue.prototype._ = lodash_default.a;
  }
});

/***/ }),

/***/ "X+EP":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return moment; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment__ = __webpack_require__("ryJa");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_moment__);


__WEBPACK_IMPORTED_MODULE_0_moment___default.a.locale('zh-cn');

var moment = __WEBPACK_IMPORTED_MODULE_0_moment___default.a;

/***/ }),

/***/ "YaEn":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ./node_modules/_vue@2.6.6@vue/dist/vue.esm.js
var vue_esm = __webpack_require__("PVEY");

// EXTERNAL MODULE: ./node_modules/_vue-router@3.0.2@vue-router/dist/vue-router.esm.js
var vue_router_esm = __webpack_require__("KGCO");

// CONCATENATED MODULE: ./src/common/anjian/base/router.js
var Play = {
  path: '/base/play',
  name: '播放',
  component: function component() {
    return __webpack_require__.e/* import() */(25).then(__webpack_require__.bind(null, "pd84"));
  }
};

var Personal = {
  path: '/base/personal',
  name: '个人资料',
  component: function component() {
    return __webpack_require__.e/* import() */(8).then(__webpack_require__.bind(null, "/rCq"));
  }
};

var ModifyPwd = {
  path: '/base/modifyPwd',
  name: '修改密码',
  component: function component() {
    return __webpack_require__.e/* import() */(41).then(__webpack_require__.bind(null, "hdI+"));
  }
};

var PreviewTxt = {
  path: '/base/previewTxt',
  name: '预览txt文件',
  component: function component() {
    return __webpack_require__.e/* import() */(69).then(__webpack_require__.bind(null, "4nem"));
  }
};

/* harmony default export */ var router = ([Play, Personal, ModifyPwd, PreviewTxt]);
// CONCATENATED MODULE: ./src/common/anjian/company/router.js
var Index = {
  path: '/company',
  name: '企业信息',
  component: function component() {
    return __webpack_require__.e/* import() */(60).then(__webpack_require__.bind(null, "ZOK1"));
  }
};

var Detail = {
  path: '/company/detail',
  name: '企业信息详情',
  component: function component() {
    return __webpack_require__.e/* import() */(1/* duplicate */).then(__webpack_require__.bind(null, "WIL9"));
  }
};

var Register = {
  path: '/company/register',
  name: '企业注册列表',
  component: function component() {
    return __webpack_require__.e/* import() */(47).then(__webpack_require__.bind(null, "UKlU"));
  }
};
var RegisterDetail = {
  path: '/company/register/detail',
  name: '企业注册信息',
  component: function component() {
    return __webpack_require__.e/* import() */(1/* duplicate */).then(__webpack_require__.bind(null, "WIL9"));
  }
};

/* harmony default export */ var company_router = ([Index, Detail, Register, RegisterDetail]);
// CONCATENATED MODULE: ./src/common/anjian/law/router.js
var router_Index = {
  path: '/law',
  name: '执法计划列表',
  component: function component() {
    return __webpack_require__.e/* import() */(28).then(__webpack_require__.bind(null, "PhLB"));
  }
};

var LawAdd = {
  path: '/law/add',
  name: '新增执法企业',
  component: function component() {
    return __webpack_require__.e/* import() */(65).then(__webpack_require__.bind(null, "4C3E"));
  }
};

var LawLink = {
  path: '/law/link',
  name: '执法链接按钮',
  component: function component() {
    return __webpack_require__.e/* import() */(26).then(__webpack_require__.bind(null, "ibB2"));
  }
};

var LawProgramme = {
  path: '/law/programme',
  name: '现场检查方案',
  component: function component() {
    return __webpack_require__.e/* import() */(33).then(__webpack_require__.bind(null, "Lu4L"));
  }
};

var LawProgrammeContent = {
  path: '/law/programmeContent',
  name: '现场检查方案-内容',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(58)]).then(__webpack_require__.bind(null, "lnZv"));
  }
};

var LawRecord = {
  path: '/law/record',
  name: '现场检查记录',
  component: function component() {
    return __webpack_require__.e/* import() */(50).then(__webpack_require__.bind(null, "ebOn"));
  }
};

var LawRecordContent = {
  path: '/law/record/content',
  name: '现场检查记录-隐患记录',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(53)]).then(__webpack_require__.bind(null, "Qnwt"));
  }
};

var LawRectify = {
  path: '/law/rectify',
  name: '责令限期整改',
  component: function component() {
    return __webpack_require__.e/* import() */(49).then(__webpack_require__.bind(null, "GQ3X"));
  }
};

var LawReview = {
  path: '/law/review',
  name: '整改复查任务',
  component: function component() {
    return __webpack_require__.e/* import() */(31).then(__webpack_require__.bind(null, "5uYg"));
  }
};

var LawDisposal = {
  path: '/law/disposal',
  name: '现场处理措施',
  component: function component() {
    return __webpack_require__.e/* import() */(32).then(__webpack_require__.bind(null, "qjbM"));
  }
};

var LawDisposalHidden = {
  path: '/law/disposal/hidden',
  name: '措施-隐患',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(45)]).then(__webpack_require__.bind(null, "rMnc"));
  }
};

var LawDisposalContent = {
  path: '/law/disposal/content',
  name: '措施-内容',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(38)]).then(__webpack_require__.bind(null, "wmNz"));
  }
};

var LawDetain = {
  path: '/law/detain',
  name: '查封扣押处置',
  component: function component() {
    return __webpack_require__.e/* import() */(39).then(__webpack_require__.bind(null, "l/Gd"));
  }
};

var LawDetainHidden = {
  path: '/law/detain/hidden',
  name: '处置-隐患',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, "2JUB"));
  }
};

var LawDetainContent = {
  path: '/law/detain/content',
  name: '处置-内容',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(62)]).then(__webpack_require__.bind(null, "XVdE"));
  }
};

var LawDetainList = {
  path: '/law/detain/list',
  name: '处置-列表',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(43)]).then(__webpack_require__.bind(null, "RlCm"));
  }
};

/* harmony default export */ var law_router = ([router_Index, LawAdd, LawLink, LawProgramme, LawProgrammeContent, LawRecord, LawRecordContent, LawRectify, LawReview, LawDisposal, LawDisposalHidden, LawDisposalContent, LawDetain, LawDetainHidden, LawDetainContent, LawDetainList]);
// EXTERNAL MODULE: ./src/common/anjian/emergency/router.js
var emergency_router = __webpack_require__("ZXm2");

// CONCATENATED MODULE: ./src/common/anjian/todo/router.js
var record = {
  path: '/todo',
  name: '代办事项',
  component: function component() {
    return __webpack_require__.e/* import() */(63).then(__webpack_require__.bind(null, "fIHr"));
  }
};

var TodoSet = {
  path: '/todo/set',
  name: '选择检查内容',
  component: function component() {
    return __webpack_require__.e/* import() */(35).then(__webpack_require__.bind(null, "C9mI"));
  }
};

var TodoAddContent = {
  path: '/todo/addContent',
  name: '执法检查任务',
  component: function component() {
    return __webpack_require__.e/* import() */(51).then(__webpack_require__.bind(null, "m6tD"));
  }
};

var TodoAddRecord = {
  path: '/todo/addRecord',
  name: '添加检查情况',
  component: function component() {
    return __webpack_require__.e/* import() */(56).then(__webpack_require__.bind(null, "Ztkr"));
  }
};

/* harmony default export */ var todo_router = ([record, TodoSet, TodoAddContent, TodoAddRecord]);
// CONCATENATED MODULE: ./src/common/anjian/dangerCheck/router.js
var dangerCheck_router_Index = {
  path: '/dangerCheck',
  name: '隐患排查',
  component: function component() {
    return __webpack_require__.e/* import() */(9).then(__webpack_require__.bind(null, "8XBH"));
  }
};

var DangerCheckList = {
  path: '/dangerCheck/list',
  name: '隐患排查清单',
  component: function component() {
    return __webpack_require__.e/* import() */(40).then(__webpack_require__.bind(null, "ev0F"));
  }
};

var DangerCheckDetail = {
  path: '/dangerCheck/detail',
  name: '隐患详情',
  component: function component() {
    return __webpack_require__.e/* import() */(44).then(__webpack_require__.bind(null, "Zdup"));
  }
};

/* harmony default export */ var dangerCheck_router = ([dangerCheck_router_Index, DangerCheckList, DangerCheckDetail]);
// CONCATENATED MODULE: ./src/common/anjian/twoDoor/router.js
var twoDoor_router_Index = {
  path: '/twoDoor',
  name: '二道门列表',
  component: function component() {
    return __webpack_require__.e/* import() */(27).then(__webpack_require__.bind(null, "VaEk"));
  }
};
/* harmony default export */ var twoDoor_router = ([twoDoor_router_Index]);
// CONCATENATED MODULE: ./src/common/anjian/contact/router.js
var contact_router_Index = {
  path: '/contact',
  name: '通讯联络',
  component: function component() {
    return __webpack_require__.e/* import() */(30).then(__webpack_require__.bind(null, "Jmz+"));
  }
};
/* harmony default export */ var contact_router = ([contact_router_Index]);
// CONCATENATED MODULE: ./src/common/anjian/repository/router.js
var repository_router_Index = {
  path: '/repository',
  name: '知识库',
  component: function component() {
    return __webpack_require__.e/* import() */(29).then(__webpack_require__.bind(null, "gy3f"));
  }

  // 测试用，应该删除
  // const PreviewFile = {
  //   path: '/PreviewFile',
  //   name: '预览文件测试',
  //   component: () => import('./demo.vue')
  // }

};/* harmony default export */ var repository_router = ([repository_router_Index]);
// CONCATENATED MODULE: ./src/common/anjian/message/router.js
var message_router_Index = {
  path: '/message',
  name: '通知公告',
  component: function component() {
    return __webpack_require__.e/* import() */(46).then(__webpack_require__.bind(null, "LCxJ"));
  }
};

var detail = {
  path: '/message/detail',
  name: '通过公告详情',
  component: function component() {
    return __webpack_require__.e/* import() */(37).then(__webpack_require__.bind(null, "xlNz"));
  }
};

var detailFile = {
  path: '/message/detail-file',
  name: '收发文详情',
  component: function component() {
    return __webpack_require__.e/* import() */(54).then(__webpack_require__.bind(null, "Lc+S"));
  }
};

var detailMeeting = {
  path: '/message/detail-meeting',
  name: '会议详情',
  component: function component() {
    return __webpack_require__.e/* import() */(48).then(__webpack_require__.bind(null, "m/lA"));
  }
};

var detailAddMeeting = {
  path: '/message/add-meeting-person',
  name: '添加参会人员',
  component: function component() {
    return __webpack_require__.e/* import() */(13).then(__webpack_require__.bind(null, "//7n"));
  }
};

/* harmony default export */ var message_router = ([message_router_Index, detail, detailFile, detailMeeting, detailAddMeeting]);
// CONCATENATED MODULE: ./src/apps/login/router.js
/* harmony default export */ var login_router = ([{
  path: '/login',
  name: '登录',
  component: function component() {
    return __webpack_require__.e/* import() */(10).then(__webpack_require__.bind(null, "2J5o"));
  },
  meta: {
    name: 'yt-zoom'
  }
}]);
// CONCATENATED MODULE: ./src/apps/home/router.js
/* harmony default export */ var home_router = ([{
  path: '/home',
  name: '首页',
  component: function component() {
    return __webpack_require__.e/* import() */(6).then(__webpack_require__.bind(null, "lIeB"));
  }
}]);
// CONCATENATED MODULE: ./src/apps/analysis/router.js
/* harmony default export */ var analysis_router = ([{
  path: '/analysis',
  name: '统计分析列表',
  component: function component() {
    return __webpack_require__.e/* import() */(71).then(__webpack_require__.bind(null, "IDzS"));
  }
}, {
  path: '/analysis/law-doc',
  name: '执法文书统计专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, "DxgV"));
  }
}, {
  path: '/analysis/law-monitor',
  name: '行政执法监察专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(21)]).then(__webpack_require__.bind(null, "QGsX"));
  }
}, {
  path: '/analysis/special-work',
  name: '特殊作业统计专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, "SHPh"));
  }
}, {
  path: '/analysis/danger-check',
  name: '隐患排查治理专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(23)]).then(__webpack_require__.bind(null, "lZB4"));
  }
}, {
  path: '/analysis/security-risk',
  name: '企业风险管控专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(20)]).then(__webpack_require__.bind(null, "eieZ"));
  }
}, {
  path: '/analysis/emergency',
  name: '应急资源统计专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(5)]).then(__webpack_require__.bind(null, "eT2I"));
  }
}, {
  path: '/analysis/danger-source-check-topic',
  name: '重大危险源报警专题',
  component: function component() {
    return Promise.all/* import() */([__webpack_require__.e(0), __webpack_require__.e(22)]).then(__webpack_require__.bind(null, "/X1a"));
  }
}]);
// CONCATENATED MODULE: ./src/apps/danger-source-check/router.js
/* harmony default export */ var danger_source_check_router = ([{
  path: '/danger-source-check',
  name: '重大危险源',
  component: function component() {
    return __webpack_require__.e/* import() */(70).then(__webpack_require__.bind(null, "HzfL"));
  }
}, {
  path: '/danger-source-check/detail',
  name: '重大危险源详情',
  component: function component() {
    return __webpack_require__.e/* import() */(34).then(__webpack_require__.bind(null, "YNoR"));
  }
}]);
// CONCATENATED MODULE: ./src/apps/special-work/router.js
/* harmony default export */ var special_work_router = ([{
  path: '/special-work',
  name: '特殊作业',
  component: function component() {
    return __webpack_require__.e/* import() */(14).then(__webpack_require__.bind(null, "hdfA"));
  }
}, {
  path: '/special-work/list',
  name: '特殊作业列表',
  component: function component() {
    return __webpack_require__.e/* import() */(52).then(__webpack_require__.bind(null, "s2CV"));
  }
}, {
  path: '/special-work/detail',
  name: '作业详情',
  component: function component() {
    return __webpack_require__.e/* import() */(57).then(__webpack_require__.bind(null, "h1zh"));
  }
}]);
// CONCATENATED MODULE: ./src/apps/security-risk/router.js
/* harmony default export */ var security_risk_router = ([{
  path: '/security-risk',
  name: '安全风险统计',
  component: function component() {
    return __webpack_require__.e/* import() */(7).then(__webpack_require__.bind(null, "EPH5"));
  }
}, {
  path: '/security-risk/list',
  name: '安全风险列表',
  component: function component() {
    return __webpack_require__.e/* import() */(64).then(__webpack_require__.bind(null, "MyfE"));
  }
}, {
  path: '/security-risk/detail',
  name: '安全风险详情',
  component: function component() {
    return __webpack_require__.e/* import() */(17).then(__webpack_require__.bind(null, "4Ezm"));
  }
}, {
  path: '/security-risk/detail/video',
  name: '周边视频',
  component: function component() {
    return __webpack_require__.e/* import() */(11).then(__webpack_require__.bind(null, "B6wu"));
  }
}, {
  path: '/security-risk/detail/device',
  name: '周边设备',
  component: function component() {
    return __webpack_require__.e/* import() */(59).then(__webpack_require__.bind(null, "MRxX"));
  }
}]);
// CONCATENATED MODULE: ./src/apps/map/router.js
/* harmony default export */ var map_router = ([{
  path: '/map',
  name: '地图',
  component: function component() {
    return __webpack_require__.e/* import() */(2).then(__webpack_require__.bind(null, "rg0V"));
  },
  meta: {
    name: 'yt-map'
  }
}]);
// CONCATENATED MODULE: ./src/router/index.js



// 安监公共业务
 // 公共页面（用户信息、修改密码、反馈、播放等...）
 // 企业信息
 // 行政执法
 // 应急管理
 // 待办事项
 // 隐患排查
 // 二道门
 // 通讯联络
 // 知识库
 // 通知公告

// 徐圩定制业务


 // 统计分析
 // 重大危险源
 // 特殊作业
 // 安全风险

// import Professional from '../apps/professional/router' // 专家库 未上线模块

 // 地图组件测试

var routes = [{
  path: '/',
  name: 'index',
  redirect: '/login'
}].concat(login_router, home_router, router, law_router, todo_router, company_router, danger_source_check_router, repository_router, emergency_router["l" /* default */], analysis_router, contact_router, twoDoor_router, special_work_router, dangerCheck_router, message_router, security_risk_router, map_router);
vue_esm["a" /* default */].use(vue_router_esm["a" /* default */]);

/* harmony default export */ var src_router = __webpack_exports__["a"] = (new vue_router_esm["a" /* default */]({ routes: routes }));

/***/ }),

/***/ "ZXm2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export Index */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Info; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AccidentProfile; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return EscapePoints; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return Videos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return Preliminary; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EarlyDisposal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return InstructionRecords; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return InstructionRecordAdd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CommandDispatch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return InfoRegister; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return ProcessRecord; });
var Index = {
  path: '/emergency',
  name: '应急救援列表',
  component: function component() {
    return __webpack_require__.e/* import() */(3).then(__webpack_require__.bind(null, "4pZC"));
  }
};

var Info = {
  path: '/emergency/info',
  name: '应急救援详情',
  component: function component() {
    return __webpack_require__.e/* import() */(4).then(__webpack_require__.bind(null, "Vg9l"));
  }
};

var AccidentProfile = {
  path: '/emergency/info/accidentProfile',
  name: '事故简况',
  component: function component() {
    return __webpack_require__.e/* import() */(18).then(__webpack_require__.bind(null, "nAI1"));
  }
};

var EscapePoints = {
  path: '/emergency/info/escapePoints',
  name: '附近逃生点',
  component: function component() {
    return __webpack_require__.e/* import() */(55).then(__webpack_require__.bind(null, "bSpR"));
  }
};

var Videos = {
  path: '/emergency/info/videos',
  name: '周边视频',
  component: function component() {
    return __webpack_require__.e/* import() */(16).then(__webpack_require__.bind(null, "3PHZ"));
  }
};

var Preliminary = {
  path: '/emergency/info/preliminary',
  name: '初步研判',
  component: function component() {
    return __webpack_require__.e/* import() */(12).then(__webpack_require__.bind(null, "HGe3"));
  }
};

var EarlyDisposal = {
  path: '/emergency/info/earlyDisposal',
  name: '先期处置',
  component: function component() {
    return __webpack_require__.e/* import() */(68).then(__webpack_require__.bind(null, "82OS"));
  }
};

var InstructionRecords = {
  path: '/emergency/info/earlyDisposal/instructionRecords',
  name: '指令记录列表',
  component: function component() {
    return __webpack_require__.e/* import() */(61).then(__webpack_require__.bind(null, "ra66"));
  }
};

var InstructionRecordAdd = {
  path: '/emergency/info/earlyDisposal/instructionRecords/add',
  name: '指令记录添加',
  component: function component() {
    return __webpack_require__.e/* import() */(67).then(__webpack_require__.bind(null, "zaYr"));
  }
};

var CommandDispatch = {
  path: '/emergency/commandDispatch',
  name: '指挥调度',
  component: function component() {
    return __webpack_require__.e/* import() */(42).then(__webpack_require__.bind(null, "qxYG"));
  }
};

var InfoRegister = {
  path: '/emergency/info/infoRegister',
  name: '事故总结',
  component: function component() {
    return __webpack_require__.e/* import() */(24).then(__webpack_require__.bind(null, "U5Tu"));
  }
};

var ProcessRecord = {
  path: '/emergency/processRecord',
  name: '过程记录',
  component: function component() {
    return __webpack_require__.e/* import() */(66).then(__webpack_require__.bind(null, "7C+y"));
  }
};

/* harmony default export */ __webpack_exports__["l"] = ([Index, Info, AccidentProfile, EscapePoints, Videos, Preliminary, EarlyDisposal, InstructionRecords, InstructionRecordAdd, CommandDispatch, InfoRegister, ProcessRecord]);

/***/ }),

/***/ "dh3M":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return PointerToString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BuildPointer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ReplaceDictionary; });
/* unused harmony export BuildTree */
/* unused harmony export findNodeFromTree */
/* unused harmony export findChildrenFromTree */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CanUpdate; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__("hRKE");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__ = __webpack_require__("KH7x");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__("4YfN");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__api_commonApi__ = __webpack_require__("+/+p");





var PointerToString = function PointerToString(object, options) {
  var obj = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, object);
  options.forEach(function (item) {
    var _item$split = item.split(':'),
        _item$split2 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default()(_item$split, 2),
        field = _item$split2[0],
        _item$split2$ = _item$split2[1],
        type = _item$split2$ === undefined ? 'string' : _item$split2$;

    var val = obj[field];
    switch (type) {
      case 'string':
        obj[field] = val ? val.id : '';
        break;
      case 'array':
        obj[field] = val ? val.map(function (v) {
          return v.id;
        }) : [];
        break;
    }
  });
  return obj;
};

var BuildPointer = function BuildPointer(object, options) {
  var obj = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, object);

  var _loop = function _loop(field) {
    var collectionName = options[field];
    var val = obj[field];
    if (val instanceof Array) {
      obj[field] = val.map(function (v) {
        return __WEBPACK_IMPORTED_MODULE_3__api_commonApi__["a" /* commonApi */].createInstance(collectionName, v.id ? v.id : v);
      });
    } else {
      obj[field] = val ? __WEBPACK_IMPORTED_MODULE_3__api_commonApi__["a" /* commonApi */].createInstance(collectionName, val.id ? val.id : val) : null;
    }
  };

  for (var field in options) {
    _loop(field);
  }
  return obj;
};

var ReplaceDictionary = function ReplaceDictionary(results, options) {
  var isArray = results instanceof Array;
  var data = isArray ? results : [results];
  data = data.map(function (item) {
    var obj = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, item);

    var _loop2 = function _loop2(_field) {
      var _field$split = _field.split(':'),
          _field$split2 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default()(_field$split, 3),
          field = _field$split2[0],
          _field$split2$ = _field$split2[1],
          $label = _field$split2$ === undefined ? 'D_text' : _field$split2$,
          _field$split2$2 = _field$split2[2],
          $value = _field$split2$2 === undefined ? 'D_code' : _field$split2$2;

      var val = options[_field];
      var _value = obj[field];
      if (_value instanceof Array) {
        var _a = _value.map(function (_item) {
          var o = val.find(function (v) {
            return v[$value] === _item;
          });
          return o ? o[$label] : _item;
        });
        obj[field] = _a.join(',');
      } else if ((typeof _value === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(_value)) === 'object') {
        var o = val.find(function (v) {
          return v[$value] === _value.id;
        });
        obj[field] = o ? o[$label] : _value;
      } else {
        var _o = val.find(function (v) {
          return v[$value] === _value;
        });
        obj[field] = _o ? _o[$label] : _value;
      }
    };

    for (var _field in options) {
      _loop2(_field);
    }
    return obj;
  });
  return isArray ? data : data[0];
};

// 构建树
function BuildTree(data, parentId, pidField) {
  var idField = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'id';
  var nodeOrder = arguments[4];

  var list = [];
  data.forEach(function (item) {
    if (item[pidField] === parentId || !parentId && !item[pidField]) {
      var children = BuildTree(data, item[idField], pidField, idField, nodeOrder);
      if (children.length) {
        if (nodeOrder) {
          children.sort(function (a, b) {
            var _a = a[nodeOrder] || 999;
            var _b = b[nodeOrder] || 999;
            return Number(_a) - Number(_b);
          });
        }
        item.children = children;
      }
      list.push(item);
    }
  });
  return list;
}

// 从树上获取node
function findNodeFromTree(tree, node) {
  var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'id';
  var children = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'children';

  if (!node || !node.length || !tree || !tree.length) return [];
  var findItem = function findItem(item, list) {
    for (var i = 0; i < list.length; i++) {
      if (list[i][id] === item) {
        return list[i];
      } else if (list[i][children] && list[i][children].length) {
        var res = findItem(item, list[i][children]);
        if (res) {
          return res;
        }
      }
    }
    return null;
  };
  return node.map(function (item) {
    return findItem(item, tree);
  });
}

// 从node中获取该node下所有的孩子
function findChildrenFromTree(node) {
  var children = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children';

  if (!node) return [];
  var results = [];
  var fn = function fn(item) {
    results.push(item);
    if (item[children]) {
      item[children].forEach(function (v) {
        fn(v);
      });
    }
  };
  fn(node);
  return results;
}

var CanUpdate = function CanUpdate(curVersion, reqVersion) {
  var curVersionArr = curVersion.split('.');
  var reqVersionArr = reqVersion.split('.');

  // 将两个版本号拆成数字
  var minL = Math.min(curVersionArr.length, reqVersionArr.length);
  var pos = 0;
  var diff = 0;

  while (pos < minL) {
    diff = parseInt(curVersionArr[pos] - parseInt(reqVersionArr[pos]));
    if (diff !== 0) break;
    pos++;
  }

  if (diff > 0) {
    console.log('新版本');
  } else if (diff === 0) {
    console.log('稳定版');
  } else {
    console.log('旧版本');
    return true;
  }
  return false;
};

/***/ }),

/***/ "fSkL":
/***/ (function(module, exports, __webpack_require__) {

var map = {
	"./af": "1OrJ",
	"./af.js": "1OrJ",
	"./ar": "bHl5",
	"./ar-dz": "qFyv",
	"./ar-dz.js": "qFyv",
	"./ar-kw": "OhBR",
	"./ar-kw.js": "OhBR",
	"./ar-ly": "3AjD",
	"./ar-ly.js": "3AjD",
	"./ar-ma": "sFwh",
	"./ar-ma.js": "sFwh",
	"./ar-sa": "gg0N",
	"./ar-sa.js": "gg0N",
	"./ar-tn": "lqw4",
	"./ar-tn.js": "lqw4",
	"./ar.js": "bHl5",
	"./az": "xLUF",
	"./az.js": "xLUF",
	"./be": "NWv/",
	"./be.js": "NWv/",
	"./bg": "G9eV",
	"./bg.js": "G9eV",
	"./bm": "zaEJ",
	"./bm.js": "zaEJ",
	"./bn": "/icp",
	"./bn.js": "/icp",
	"./bo": "UyM9",
	"./bo.js": "UyM9",
	"./br": "G5xs",
	"./br.js": "G5xs",
	"./bs": "9h8A",
	"./bs.js": "9h8A",
	"./ca": "8ccl",
	"./ca.js": "8ccl",
	"./cs": "TEiJ",
	"./cs.js": "TEiJ",
	"./cv": "7EVA",
	"./cv.js": "7EVA",
	"./cy": "H6w8",
	"./cy.js": "H6w8",
	"./da": "MSIt",
	"./da.js": "MSIt",
	"./de": "Rl+D",
	"./de-at": "30Vd",
	"./de-at.js": "30Vd",
	"./de-ch": "KKU8",
	"./de-ch.js": "KKU8",
	"./de.js": "Rl+D",
	"./dv": "+DOJ",
	"./dv.js": "+DOJ",
	"./el": "8nDw",
	"./el.js": "8nDw",
	"./en-SG": "1hne",
	"./en-SG.js": "1hne",
	"./en-au": "ZsCN",
	"./en-au.js": "ZsCN",
	"./en-ca": "rHyc",
	"./en-ca.js": "rHyc",
	"./en-gb": "ehFk",
	"./en-gb.js": "ehFk",
	"./en-ie": "Hxoc",
	"./en-ie.js": "Hxoc",
	"./en-il": "oEKo",
	"./en-il.js": "oEKo",
	"./en-nz": "SfkL",
	"./en-nz.js": "SfkL",
	"./eo": "UhWX",
	"./eo.js": "UhWX",
	"./es": "JJW5",
	"./es-do": "LWvi",
	"./es-do.js": "LWvi",
	"./es-us": "RzRn",
	"./es-us.js": "RzRn",
	"./es.js": "JJW5",
	"./et": "pjM/",
	"./et.js": "pjM/",
	"./eu": "oBFE",
	"./eu.js": "oBFE",
	"./fa": "z8Fc",
	"./fa.js": "z8Fc",
	"./fi": "j+B7",
	"./fi.js": "j+B7",
	"./fo": "MuUW",
	"./fo.js": "MuUW",
	"./fr": "CZ8n",
	"./fr-ca": "nDiE",
	"./fr-ca.js": "nDiE",
	"./fr-ch": "T2mj",
	"./fr-ch.js": "T2mj",
	"./fr.js": "CZ8n",
	"./fy": "+eCN",
	"./fy.js": "+eCN",
	"./ga": "6KMf",
	"./ga.js": "6KMf",
	"./gd": "Osat",
	"./gd.js": "Osat",
	"./gl": "3uJi",
	"./gl.js": "3uJi",
	"./gom-latn": "kQyN",
	"./gom-latn.js": "kQyN",
	"./gu": "C85o",
	"./gu.js": "C85o",
	"./he": "Uaie",
	"./he.js": "Uaie",
	"./hi": "KLVO",
	"./hi.js": "KLVO",
	"./hr": "/AQ7",
	"./hr.js": "/AQ7",
	"./hu": "neNx",
	"./hu.js": "neNx",
	"./hy-am": "HL0q",
	"./hy-am.js": "HL0q",
	"./id": "fVYV",
	"./id.js": "fVYV",
	"./is": "pUHy",
	"./is.js": "pUHy",
	"./it": "N5fZ",
	"./it-ch": "KCG7",
	"./it-ch.js": "KCG7",
	"./it.js": "N5fZ",
	"./ja": "bVIB",
	"./ja.js": "bVIB",
	"./jv": "NpB+",
	"./jv.js": "NpB+",
	"./ka": "8RqC",
	"./ka.js": "8RqC",
	"./kk": "pcbE",
	"./kk.js": "pcbE",
	"./km": "o5og",
	"./km.js": "o5og",
	"./kn": "BKte",
	"./kn.js": "BKte",
	"./ko": "vztA",
	"./ko.js": "vztA",
	"./ku": "OmHn",
	"./ku.js": "OmHn",
	"./ky": "gQFs",
	"./ky.js": "gQFs",
	"./lb": "sJOA",
	"./lb.js": "sJOA",
	"./lo": "Wg2E",
	"./lo.js": "Wg2E",
	"./lt": "N5Ie",
	"./lt.js": "N5Ie",
	"./lv": "Z/KU",
	"./lv.js": "Z/KU",
	"./me": "6nQR",
	"./me.js": "6nQR",
	"./mi": "dZ9v",
	"./mi.js": "dZ9v",
	"./mk": "8ttA",
	"./mk.js": "8ttA",
	"./ml": "TFUT",
	"./ml.js": "TFUT",
	"./mn": "Rtcs",
	"./mn.js": "Rtcs",
	"./mr": "ZrND",
	"./mr.js": "ZrND",
	"./ms": "Uszi",
	"./ms-my": "B+3a",
	"./ms-my.js": "B+3a",
	"./ms.js": "Uszi",
	"./mt": "f+DN",
	"./mt.js": "f+DN",
	"./my": "7hhd",
	"./my.js": "7hhd",
	"./nb": "O+uN",
	"./nb.js": "O+uN",
	"./ne": "xB1H",
	"./ne.js": "xB1H",
	"./nl": "pyzp",
	"./nl-be": "6XY9",
	"./nl-be.js": "6XY9",
	"./nl.js": "pyzp",
	"./nn": "wWYI",
	"./nn.js": "wWYI",
	"./pa-in": "khMS",
	"./pa-in.js": "khMS",
	"./pl": "J+lf",
	"./pl.js": "J+lf",
	"./pt": "imZp",
	"./pt-br": "yh7C",
	"./pt-br.js": "yh7C",
	"./pt.js": "imZp",
	"./ro": "/ydL",
	"./ro.js": "/ydL",
	"./ru": "XA72",
	"./ru.js": "XA72",
	"./sd": "K+sy",
	"./sd.js": "K+sy",
	"./se": "HXCg",
	"./se.js": "HXCg",
	"./si": "JhyT",
	"./si.js": "JhyT",
	"./sk": "QL3+",
	"./sk.js": "QL3+",
	"./sl": "KbOk",
	"./sl.js": "KbOk",
	"./sq": "jkQm",
	"./sq.js": "jkQm",
	"./sr": "vGLH",
	"./sr-cyrl": "lZcv",
	"./sr-cyrl.js": "lZcv",
	"./sr.js": "vGLH",
	"./ss": "ikBz",
	"./ss.js": "ikBz",
	"./sv": "gbWe",
	"./sv.js": "gbWe",
	"./sw": "YR+a",
	"./sw.js": "YR+a",
	"./ta": "otVD",
	"./ta.js": "otVD",
	"./te": "3YuF",
	"./te.js": "3YuF",
	"./tet": "IJME",
	"./tet.js": "IJME",
	"./tg": "iKfg",
	"./tg.js": "iKfg",
	"./th": "v87T",
	"./th.js": "v87T",
	"./tl-ph": "otiP",
	"./tl-ph.js": "otiP",
	"./tlh": "L/GK",
	"./tlh.js": "L/GK",
	"./tr": "phcV",
	"./tr.js": "phcV",
	"./tzl": "rgrh",
	"./tzl.js": "rgrh",
	"./tzm": "1pHS",
	"./tzm-latn": "q7e0",
	"./tzm-latn.js": "q7e0",
	"./tzm.js": "1pHS",
	"./ug-cn": "tsGA",
	"./ug-cn.js": "tsGA",
	"./uk": "01SB",
	"./uk.js": "01SB",
	"./ur": "jayG",
	"./ur.js": "jayG",
	"./uz": "k3sX",
	"./uz-latn": "nmSA",
	"./uz-latn.js": "nmSA",
	"./uz.js": "k3sX",
	"./vi": "KTvP",
	"./vi.js": "KTvP",
	"./x-pseudo": "dccK",
	"./x-pseudo.js": "dccK",
	"./yo": "IAhR",
	"./yo.js": "IAhR",
	"./zh-cn": "5Spc",
	"./zh-cn.js": "5Spc",
	"./zh-hk": "ECSc",
	"./zh-hk.js": "ECSc",
	"./zh-tw": "hH/4",
	"./zh-tw.js": "hH/4"
};
function webpackContext(req) {
	return __webpack_require__(webpackContextResolve(req));
};
function webpackContextResolve(req) {
	var id = map[req];
	if(!(id + 1)) // check for number or string
		throw new Error("Cannot find module '" + req + "'.");
	return id;
};
webpackContext.keys = function webpackContextKeys() {
	return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "fSkL";

/***/ }),

/***/ "izgY":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ "kZcp":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXTERNAL MODULE: ./node_modules/_babel-runtime@6.26.0@babel-runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__("IHPB");
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);

// EXTERNAL MODULE: ./node_modules/_vue@2.6.6@vue/dist/vue.esm.js
var vue_esm = __webpack_require__("PVEY");

// CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/common/plugin/$toast/index.vue
//
//
//
//
//
//
//
//
//
//

var TYPE = {
  SUCCESS: 'success',
  ERROR: 'error',
  TOOL: 'tool'
};
/* harmony default export */ var $toast = ({
  name: 'yt-toast',
  computed: {
    font: function font() {
      switch (this.type) {
        case TYPE.SUCCESS:
          return 'yt-icon yt-icon-success';
        case TYPE.ERROR:
          return 'yt-icon yt-icon-error';
        case TYPE.TOOL:
          return 'yt-icon yt-icon-tool';
        default:
          return 'yt-icon yt-icon-tool';
      }
    }
  },
  data: function data() {
    return {
      showToast: false,
      msg: 'hello world',
      type: TYPE.TOOL
    };
  },

  methods: {
    show: function show(msg) {
      var _this = this;

      var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : TYPE.SUCCESS;
      var time = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3000;

      if (!msg) return;
      this.msg = msg;
      this.type = type;
      this.showToast = true;
      if (this.timeout) {
        clearTimeout(this.timeout);
      }
      this.timeout = setTimeout(function () {
        _this.showToast = false;
      }, time);
    }
  }
});
// CONCATENATED MODULE: ./node_modules/_vue-loader@13.7.3@vue-loader/lib/template-compiler?{"id":"data-v-1b3181c4","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=template&index=0!./src/common/plugin/$toast/index.vue
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"yt-slider-top"}},[(_vm.showToast)?_c('div',{staticClass:"yt-toast",class:("is-" + _vm.type)},[_c('div',{staticClass:"yt-toast-opacity"}),_vm._v(" "),_c('i',{staticClass:"yt-toast-icon",class:_vm.font}),_vm._v(" "),_c('span',{staticClass:"yt-toast-text"},[_vm._v(_vm._s(_vm.msg))])]):_vm._e()])}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ var plugin_$toast = (esExports);
// CONCATENATED MODULE: ./src/common/plugin/$toast/index.vue
var normalizeComponent = __webpack_require__("C7Lr")
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  $toast,
  plugin_$toast,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

/* harmony default export */ var common_plugin_$toast = (Component.exports);

// CONCATENATED MODULE: ./src/common/plugin/$toast/index.js
/* harmony export (immutable) */ __webpack_exports__["a"] = Toast;

/**
 * Created by mas on 2018/3/9.
 */



var toastPool = [];
var $toast_getAnInstance = function getAnInstance() {
  if (toastPool.length > 0) {
    return toastPool[0];
  }
  var ToastConstructor = vue_esm["a" /* default */].extend(common_plugin_$toast);
  var instance = new ToastConstructor({
    el: document.createElement('div')
  });
  toastPool.push(instance);
  return instance;
};

function Toast() {
  var options = arguments;
  var instance = $toast_getAnInstance();
  document.body.appendChild(instance.$el);
  vue_esm["a" /* default */].nextTick(function () {
    instance.show.apply(instance, toConsumableArray_default()(options));
  });
  return instance;
}

/***/ }),

/***/ "s2L3":
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__.p + "static/img/noInfo.1e80166.png";

/***/ }),

/***/ "tokW":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "wF9o":
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ "xblt":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return backStore; });
var backStore = {
  callback: [],
  on: function on(context, fn) {
    this.callback.unshift({
      id: context._uid,
      fn: fn
    });
  },
  off: function off(context) {
    var index = this.callback.findIndex(function (v) {
      return v.id === context._uid;
    });
    if (index === -1) return;
    this.callback.splice(index, 1);
  },
  emit: function emit() {
    var first = this.callback[0];
    if (!first) return;
    first.fn();
  }
};

window.backStore = backStore;

/***/ })

},["NHnr"]);